MetalamaAPI documentationExtensions APIMetalama.​Extensions.​Dependency­InjectionDependency­Injection­ExtensionsConfigure­Dependency­Injection
Open sandboxFocus

DependencyInjectionExtensions.ConfigureDependencyInjection Method

ConfigureDependencyInjection(IAspectReceiver<ICompilation>, Action<DependencyInjectionOptionsBuilder>)

Configures Metalama.Extensions.DependencyInjection for the current project.

Declaration
public static void ConfigureDependencyInjection(this IAspectReceiver<ICompilation> receiver, Action<DependencyInjectionOptionsBuilder> configure)
Parameters
Type Name Description
IAspectReceiver<ICompilation> receiver

The IAspectReceiver<TDeclaration> for current compilation.

System.Action<DependencyInjectionOptionsBuilder> configure

A delegate that configures the framework.

ConfigureDependencyInjection(IAspectReceiver<INamedType>, Action<DependencyInjectionOptionsBuilder>)

Configures Metalama.Extensions.DependencyInjection for a given type.

Declaration
public static void ConfigureDependencyInjection(this IAspectReceiver<INamedType> receiver, Action<DependencyInjectionOptionsBuilder> configure)
Parameters
Type Name Description
IAspectReceiver<INamedType> receiver

The IAspectReceiver<TDeclaration> for the type.

System.Action<DependencyInjectionOptionsBuilder> configure

A delegate that configures the framework.

ConfigureDependencyInjection(IAspectReceiver<INamespace>, Action<DependencyInjectionOptionsBuilder>)

Configures Metalama.Extensions.DependencyInjection for a given type.

Declaration
public static void ConfigureDependencyInjection(this IAspectReceiver<INamespace> receiver, Action<DependencyInjectionOptionsBuilder> configure)
Parameters
Type Name Description
IAspectReceiver<INamespace> receiver

The IAspectReceiver<TDeclaration> for the type.

System.Action<DependencyInjectionOptionsBuilder> configure

A delegate that configures the framework.