Exposes a method SelectFramework(DependencyProperties, ImmutableArray<IDependencyInjectionFramework>) that gets called when there are many candidate frameworks for a dependency.
Namespace: Metalama.Extensions.DependencyInjection
Assembly: Metalama.Extensions.DependencyInjection.dll
Syntax
[CompileTime]
public interface IDependencyInjectionFrameworkSelector : ICompileTimeSerializableRemarks
This interface allows customization of dependency injection framework selection when multiple frameworks are registered and eligible to handle a specific dependency. To provide a custom selector, set Selector when configuring dependency injection options via ConfigureDependencyInjection(IQuery<ICompilation>, Action<DependencyInjectionOptionsBuilder>).
By default, Metalama selects the framework with the lowest priority value among the eligible ones.
Methods
| Name | Description |
|---|---|
| SelectFramework(DependencyProperties, ImmutableArray<IDependencyInjectionFramework>) | Selects the IDependencyInjectionFramework that should handle a given dependency. |