The default implementation of IDependencyPullStrategy.
Implements
Namespace: Metalama.Extensions.DependencyInjection.Implementation
Assembly: Metalama.Extensions.DependencyInjection.dll
Syntax
public class DefaultDependencyPullStrategy : IDependencyPullStrategyConstructors
| Name | Description |
|---|---|
| DefaultDependencyPullStrategy(DependencyProperties, IFieldOrProperty) | Initializes a new instance of the DefaultDependencyPullStrategy class. |
Properties
| Name | Description |
|---|---|
| AssignedFieldOrProperty | Gets the field or property that must be assigned by the GetAssignmentStatement(IParameter) method. |
| IntroducedFieldOrProperty | Gets the dependency field or property in the target type. |
| ParameterType | Gets the type of the constructor parameter. This is used by both GetNewParameter(IConstructor) and GetExistingParameter(IConstructor). |
Methods
| Name | Description |
|---|---|
| CreateParameterPullStrategy() | Creates an IParameterPullStrategy, used to introduce and pull the parameter. |
| GetAssignmentStatement(IParameter) | Gets a statement that assigns the dependency field or property from a parameter or another expression. |