Metalama//API Documentation/Extensions API/Metalama.​Extensions.​Dependency­Injection.​Implementation/Default­Dependency­Injection­Framework/Introduce­Dependency
Open sandboxFocus

Method IntroduceDependency

IntroduceDependency(IntroduceDependencyContext, IAspectBuilder<INamedType>)

Processes the IntroduceDependencyAttribute advice, i.e. introduce a dependency defined by a custom aspect into the target type of the aspect.

Declaration
public void IntroduceDependency(IntroduceDependencyContext context, IAspectBuilder<INamedType> aspectBuilder)
Parameters
Type Name Description
IntroduceDependencyContext context

Information regarding the dependency to inject.

IAspectBuilder<INamedType> aspectBuilder

An IAspectBuilder<TAspectTarget> for the target type.

Implements
IDependencyInjectionFramework.IntroduceDependency(IntroduceDependencyContext, IAspectBuilder<INamedType>)