<PackageReference Include="Microsoft.Extensions.Options" Version="10.0.7" />

Microsoft.Extensions.Options.ConfigureNamedOptions<TOptions, TDep1, TDep2, TDep3, TDep4>

public class ConfigureNamedOptions<TOptions, TDep1, TDep2, TDep3, TDep4> : IConfigureNamedOptions<TOptions>, IConfigureOptions<TOptions>
Implementation of IConfigureNamedOptions<T>.
public Action<TOptions, TDep1, TDep2, TDep3, TDep4> Action { get; }

Gets the configuration action.

public TDep1 Dependency1 { get; }

Gets the first dependency.

public TDep2 Dependency2 { get; }

Gets the second dependency.

public TDep3 Dependency3 { get; }

Gets the third dependency.

public TDep4 Dependency4 { get; }

Gets the fourth dependency.

public string Name { get; }

Gets the options name.

public ConfigureNamedOptions(string name, TDep1 dependency1, TDep2 dependency2, TDep3 dependency3, TDep4 dependency4, Action<TOptions, TDep1, TDep2, TDep3, TDep4> action)

Constructor.

public virtual void Configure(string name, TOptions options)

Invokes the registered configure Action if the name matches.

public void Configure(TOptions options)

Configures a TOptions instance with the DefaultName.