Metalama / / API Documentation / Extensions API / Metalama.​Extensions.​Dependency­Injection.​Implementation / IDependency­Injection­Framework / Implement­Dependency

Method ImplementDependency

ImplementDependency(ImplementDependencyContext, IAspectBuilder<IFieldOrProperty>)

Processes the DependencyAttribute aspect, i.e. changes the target field or property of the aspect into a dependency.

Declaration
void ImplementDependency(ImplementDependencyContext context, IAspectBuilder<IFieldOrProperty> aspectBuilder)
Parameters
Type Name Description
ImplementDependencyContext context

Information regarding the dependency to inject.

IAspectBuilder<IFieldOrProperty> aspectBuilder

The IAspectBuilder<TAspectTarget> for the field or property to pull.