Open sandboxFocus

Namespace Metalama.Extensions.DependencyInjection

Classes

DependencyAttribute

Custom attribute that, when 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 and IAspectBuilder interfaces.

DependencyInjectionOptionsBuilder

DependencyProperties

Specifications of an introduced dependency.

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

IDependencyInjectionFrameworkSelector

Exposes a method SelectFramework(DependencyProperties, ImmutableArray<IDependencyInjectionFramework>) that gets called when there are many candidate frameworks for a dependency.