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

DependencyInjectionOptionsBuilder Class

Inheritance
System.Object
DependencyInjectionOptionsBuilder
Namespace: Metalama.Extensions.DependencyInjection
Assembly: Metalama.Extensions.DependencyInjection.dll
Syntax
[CompileTime]
public class DependencyInjectionOptionsBuilder : Object

Constructors

Name Description
DependencyInjectionOptionsBuilder()

Properties

Name Description
IsLazy

Sets a value indicating whether the default value for the IsLazy property of DependencyAttribute and IntroduceDependencyAttribute.

IsRequired

Sets a value indicating whether the default value for the IsRequired property of DependencyAttribute and IntroduceDependencyAttribute.

Selector

Sets a delegate that is called when several dependency injection frameworks have been registered for the current project and many vote to handle a given dependency. The default implementation is to return the first framework in the array.

Methods

Name Description
Build()
RegisterFramework<TFramework>(Int32)
SetFrameworkPriority<TFramework>(Int32)
UnregisterFramework<TFramework>()