Metalama 1.0 / / Metalama Documentation / Aspect API Documentation / Metalama.​Framework.​Dependency­Injection / Dependency­Injection­Options / Selector

Property Selector

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.

Declaration
public Func<DependencyContext, ImmutableArray<IDependencyInjectionFramework>, IDependencyInjectionFramework> Selector { get; set; }
Property Value
Type Description
Func<DependencyContext, ImmutableArray<IDependencyInjectionFramework>, IDependencyInjectionFramework>