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

DependencyInjectionOptions Class

Inheritance
DependencyInjectionOptions
Namespace: Metalama.Extensions.DependencyInjection.Implementation
Assembly: Metalama.Extensions.DependencyInjection.dll
Syntax
public sealed class DependencyInjectionOptions : Object, IHierarchicalOptions<ICompilation>, IHierarchicalOptions<INamespace>, IHierarchicalOptions<INamedType>, IHierarchicalOptions, IIncrementalObject, ICompileTimeSerializable

Constructors

Name Description
DependencyInjectionOptions()

Properties

Name Description
FrameworkRegistrations

Gets or sets the list of frameworks that can be used to implement the IntroduceDependencyAttribute advice and DependencyAttribute aspect.

IsLazy

Gets or sets a value indicating whether the default value for the IsLazy property of DependencyAttribute and IntroduceDependencyAttribute.

IsRequired

Gets or sets a value indicating whether the default value for the IsRequired property of DependencyAttribute and IntroduceDependencyAttribute.

Selector

Gets or 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
<Clone>$()
Equals(DependencyInjectionOptions)
Equals(Object)
GetHashCode()
ToString()

Operators

Name Description
Equality(DependencyInjectionOptions, DependencyInjectionOptions)
Inequality(DependencyInjectionOptions, DependencyInjectionOptions)

Explicit Interface Implementations

Name Description
IHierarchicalOptions.GetDefaultOptions(OptionsInitializationContext)