Open sandboxFocus

Method ConfigureDependencyInjection

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.

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.

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.

Action<DependencyInjectionOptionsBuilder> configure

A delegate that configures the framework.