Open sandboxFocus

Method TryIntroduceDependency

TryIntroduceDependency(IAspectBuilder<INamedType>, out IFieldOrProperty?)

The entry point of the DefaultDependencyInjectionStrategy. Orchestrates all steps: first calls Metalama.Extensions.DependencyInjection.Implementation.DefaultDependencyInjectionStrategy.TryIntroduceFieldOrProperty(Metalama.Framework.Aspects.IAspectBuilder{Metalama.Framework.Code.INamedType},Metalama.Framework.Code.IFieldOrProperty@,System.Boolean@), then GetPullStrategy(IFieldOrProperty), then TryPullDependency(IAspectBuilder<INamedType>, IFieldOrProperty, IPullStrategy).

Declaration
public virtual bool TryIntroduceDependency(IAspectBuilder<INamedType> builder, out IFieldOrProperty? fieldOrProperty)
Parameters
Type Name Description
IAspectBuilder<INamedType> builder
IFieldOrProperty fieldOrProperty
Returns
Type Description
bool