Represents a way to pull a field or property.
Namespace: Metalama.Framework.Advising
Assembly: Metalama.Framework.dll
Syntax
[CompileTime]
public readonly struct PullAction
Properties
Name | Description |
---|---|
Expression | |
None | Gets a PullAction that means that the dependency has to be set to its default value. |
Methods
Name | Description |
---|---|
IntroduceParameterAndPull(string, IType, TypedConstant, ImmutableArray<AttributeConstruction>) | Creates a PullAction that means that the dependency should be pulled from a new parameter of the calling constructor. |
UseExistingParameter(IParameter) | Creates a PullAction that means that the dependency should be pulled from an existing constructor parameter. |
UseExpression(IExpression) | Creates a PullAction that means that the dependency should be assigned to a given expression. |