MetalamaAPI documentationExtensions APIMetalama.​Extensions.​Dependency­Injection.​ImplementationIDependency­Injection­FrameworkTry­Implement­Dependency
Open sandboxFocus

IDependencyInjectionFramework.TryImplementDependency Method

TryImplementDependency(DependencyProperties, IAspectBuilder<IFieldOrProperty>)

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

Declaration
bool TryImplementDependency(DependencyProperties properties, IAspectBuilder<IFieldOrProperty> aspectBuilder)
Parameters
Type Name Description
DependencyProperties properties

Information regarding the dependency to inject.

IAspectBuilder<IFieldOrProperty> aspectBuilder

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

Returns
Type Description
System.Boolean