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

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

public class ConfigureNamedOptions<TOptions, TDep1, TDep2, TDep3> : IConfigureNamedOptions<TOptions>, IConfigureOptions<TOptions>
Implementation of IConfigureNamedOptions<T>.
public Action<TOptions, TDep1, TDep2, TDep3> 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 string Name { get; }

Gets the options name.

public ConfigureNamedOptions(string name, TDep1 dependency, TDep2 dependency2, TDep3 dependency3, Action<TOptions, TDep1, TDep2, TDep3> 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.