Open sandboxFocus

Method TryIntroduceDependency

TryIntroduceDependency(DependencyProperties, IAspectBuilder<INamedType>, out IFieldOrProperty?)

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

Declaration
bool TryIntroduceDependency(DependencyProperties properties, IAspectBuilder<INamedType> aspectBuilder, out IFieldOrProperty? dependencyFieldOrProperty)
Parameters
Type Name Description
DependencyProperties properties

Information regarding the dependency to inject.

IAspectBuilder<INamedType> aspectBuilder

An IAspectBuilder<TAspectTarget> for the target type.

IFieldOrProperty dependencyFieldOrProperty
Returns
Type Description
bool