Open sandboxFocus

Class DependencyInjectionOptions

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

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
Equals(DependencyInjectionOptions?)
Equals(object?)
GetHashCode()
ToString()

Operators

Name Description
operator ==(DependencyInjectionOptions?, DependencyInjectionOptions?)
operator !=(DependencyInjectionOptions?, DependencyInjectionOptions?)

Extension Methods