Metalama 1.0 / / Metalama Documentation / Aspect API Documentation / Metalama.​Framework.​Dependency­Injection

Namespace Metalama.Framework.DependencyInjection

Classes

DependencyAttribute

Custom attribute that, when be applied to a field or automatic property in user code, means that this field or property is a service dependency that must be pulled from the dependency injection framework. Contrarily to IntroduceDependencyAttribute that must be used in aspect code, this attribute must be used in user code.

DependencyInjectionExtensions

Extends the IProject class by exposing the options that influence the handling of IntroduceDependencyAttribute.

DependencyInjectionOptions

Options that influence the processing of IntroduceDependencyAttribute.

IntroduceDependencyAttribute

Custom attribute that, when be applied to a field or automatic property of an aspect, means that this field or property is a service dependency that introduced into the target type and handled by a dependency injection framework. Contrarily to DependencyAttribute that can be used in user code, this attribute can be used only in an aspect.

Interfaces

IDependencyAttribute

A common interface for DependencyAttribute and IntroduceDependencyAttribute.