MetalamaAPI documentationExtensions APIMetalama.​Extensions.​Dependency­InjectionIDependency­Injection­Framework­SelectorSelect­Framework
Open sandboxFocus

IDependencyInjectionFrameworkSelector.SelectFramework Method

SelectFramework(DependencyProperties, ImmutableArray<IDependencyInjectionFramework>)

Selects the IDependencyInjectionFramework that should handle a given dependency.

Declaration
IDependencyInjectionFramework SelectFramework(DependencyProperties properties, ImmutableArray<IDependencyInjectionFramework> eligibleFrameworks)
Parameters
Type Name Description
DependencyProperties properties

The properties of this dependencies.

System.Collections.Immutable.ImmutableArray<IDependencyInjectionFramework> eligibleFrameworks

The list of frameworks that are eligible for this dependency.

Returns
Type Description
IDependencyInjectionFramework

The selected dependency.