Zdieľať cez


OptionsBuilderConfigurationExtensions Class

Definition

Extension methods for adding configuration related options services to the DI container via OptionsBuilder<TOptions>.

public ref class OptionsBuilderConfigurationExtensions abstract sealed
public static class OptionsBuilderConfigurationExtensions
type OptionsBuilderConfigurationExtensions = class
Public Module OptionsBuilderConfigurationExtensions
Inheritance
OptionsBuilderConfigurationExtensions

Methods

Bind<TOptions>(OptionsBuilder<TOptions>, IConfiguration, Action<BinderOptions>)

Registers a configuration instance which TOptions will bind against.

Bind<TOptions>(OptionsBuilder<TOptions>, IConfiguration)

Registers a configuration instance which TOptions will bind against.

BindConfiguration<TOptions>(OptionsBuilder<TOptions>, String, Action<BinderOptions>)

Registers the dependency injection container to bind TOptions against the IConfiguration obtained from the DI service provider.

Applies to