Sdílet prostřednictvím


OptionsConfigurationServiceCollectionExtensions.Configure Metoda

Definice

Přetížení

Configure<TOptions>(IServiceCollection, IConfiguration)

Zaregistruje instanci konfigurace, která TOptions se bude svázat s, a aktualizuje možnosti při změně konfigurace.

Configure<TOptions>(IServiceCollection, IConfiguration, Action<BinderOptions>)

Zaregistruje instanci konfigurace, se kterou se váže TOptions.

Configure<TOptions>(IServiceCollection, String, IConfiguration)

Zaregistruje instanci konfigurace, se kterou se váže TOptions.

Configure<TOptions>(IServiceCollection, String, IConfiguration, Action<BinderOptions>)

Zaregistruje instanci konfigurace, se kterou se váže TOptions.

Configure<TOptions>(IServiceCollection, IConfiguration)

Zdroj:
OptionsConfigurationServiceCollectionExtensions.cs
Zdroj:
OptionsConfigurationServiceCollectionExtensions.cs
Zdroj:
OptionsConfigurationServiceCollectionExtensions.cs
Zdroj:
OptionsConfigurationServiceCollectionExtensions.cs

Zaregistruje instanci konfigurace, která TOptions se bude svázat s, a aktualizuje možnosti při změně konfigurace.

public:
generic <typename TOptions>
 where TOptions : class[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ Configure(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, Microsoft::Extensions::Configuration::IConfiguration ^ config);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection Configure<TOptions> (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Microsoft.Extensions.Configuration.IConfiguration config) where TOptions : class;
static member Configure : Microsoft.Extensions.DependencyInjection.IServiceCollection * Microsoft.Extensions.Configuration.IConfiguration -> Microsoft.Extensions.DependencyInjection.IServiceCollection (requires 'Options : null)
<Extension()>
Public Function Configure(Of TOptions As Class) (services As IServiceCollection, config As IConfiguration) As IServiceCollection

Parametry typu

TOptions

Typ konfigurovaných možností

Parametry

services
IServiceCollection

Chcete-li IServiceCollection přidat služby do.

config
IConfiguration

Konfigurace je vázaná.

Návraty

Aby IServiceCollection bylo možné zřetězovat další volání.

Platí pro

Configure<TOptions>(IServiceCollection, IConfiguration, Action<BinderOptions>)

Zdroj:
OptionsConfigurationServiceCollectionExtensions.cs
Zdroj:
OptionsConfigurationServiceCollectionExtensions.cs
Zdroj:
OptionsConfigurationServiceCollectionExtensions.cs
Zdroj:
OptionsConfigurationServiceCollectionExtensions.cs

Zaregistruje instanci konfigurace, se kterou se váže TOptions.

public:
generic <typename TOptions>
 where TOptions : class[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ Configure(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, Microsoft::Extensions::Configuration::IConfiguration ^ config, Action<Microsoft::Extensions::Configuration::BinderOptions ^> ^ configureBinder);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection Configure<TOptions> (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Microsoft.Extensions.Configuration.IConfiguration config, Action<Microsoft.Extensions.Configuration.BinderOptions>? configureBinder) where TOptions : class;
static member Configure : Microsoft.Extensions.DependencyInjection.IServiceCollection * Microsoft.Extensions.Configuration.IConfiguration * Action<Microsoft.Extensions.Configuration.BinderOptions> -> Microsoft.Extensions.DependencyInjection.IServiceCollection (requires 'Options : null)
<Extension()>
Public Function Configure(Of TOptions As Class) (services As IServiceCollection, config As IConfiguration, configureBinder As Action(Of BinderOptions)) As IServiceCollection

Parametry typu

TOptions

Typ konfigurovaných možností

Parametry

services
IServiceCollection

Chcete-li IServiceCollection přidat služby do.

config
IConfiguration

Konfigurace je vázaná.

configureBinder
Action<BinderOptions>

Používá se ke konfiguraci .BinderOptions

Návraty

Aby IServiceCollection bylo možné zřetězovat další volání.

Platí pro

Configure<TOptions>(IServiceCollection, String, IConfiguration)

Zdroj:
OptionsConfigurationServiceCollectionExtensions.cs
Zdroj:
OptionsConfigurationServiceCollectionExtensions.cs
Zdroj:
OptionsConfigurationServiceCollectionExtensions.cs
Zdroj:
OptionsConfigurationServiceCollectionExtensions.cs

Zaregistruje instanci konfigurace, se kterou se váže TOptions.

public:
generic <typename TOptions>
 where TOptions : class[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ Configure(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, System::String ^ name, Microsoft::Extensions::Configuration::IConfiguration ^ config);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection Configure<TOptions> (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, string? name, Microsoft.Extensions.Configuration.IConfiguration config) where TOptions : class;
static member Configure : Microsoft.Extensions.DependencyInjection.IServiceCollection * string * Microsoft.Extensions.Configuration.IConfiguration -> Microsoft.Extensions.DependencyInjection.IServiceCollection (requires 'Options : null)
<Extension()>
Public Function Configure(Of TOptions As Class) (services As IServiceCollection, name As String, config As IConfiguration) As IServiceCollection

Parametry typu

TOptions

Typ konfigurovaných možností

Parametry

services
IServiceCollection

Chcete-li IServiceCollection přidat služby do.

name
String

Název instance možností.

config
IConfiguration

Konfigurace je vázaná.

Návraty

Aby IServiceCollection bylo možné zřetězovat další volání.

Platí pro

Configure<TOptions>(IServiceCollection, String, IConfiguration, Action<BinderOptions>)

Zdroj:
OptionsConfigurationServiceCollectionExtensions.cs
Zdroj:
OptionsConfigurationServiceCollectionExtensions.cs
Zdroj:
OptionsConfigurationServiceCollectionExtensions.cs
Zdroj:
OptionsConfigurationServiceCollectionExtensions.cs

Zaregistruje instanci konfigurace, se kterou se váže TOptions.

public:
generic <typename TOptions>
 where TOptions : class[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ Configure(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, System::String ^ name, Microsoft::Extensions::Configuration::IConfiguration ^ config, Action<Microsoft::Extensions::Configuration::BinderOptions ^> ^ configureBinder);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection Configure<TOptions> (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, string? name, Microsoft.Extensions.Configuration.IConfiguration config, Action<Microsoft.Extensions.Configuration.BinderOptions>? configureBinder) where TOptions : class;
static member Configure : Microsoft.Extensions.DependencyInjection.IServiceCollection * string * Microsoft.Extensions.Configuration.IConfiguration * Action<Microsoft.Extensions.Configuration.BinderOptions> -> Microsoft.Extensions.DependencyInjection.IServiceCollection (requires 'Options : null)
<Extension()>
Public Function Configure(Of TOptions As Class) (services As IServiceCollection, name As String, config As IConfiguration, configureBinder As Action(Of BinderOptions)) As IServiceCollection

Parametry typu

TOptions

Typ konfigurovaných možností

Parametry

services
IServiceCollection

Chcete-li IServiceCollection přidat služby do.

name
String

Název instance možností.

config
IConfiguration

Konfigurace je vázaná.

configureBinder
Action<BinderOptions>

Používá se ke konfiguraci .BinderOptions

Návraty

Aby IServiceCollection bylo možné zřetězovat další volání.

Platí pro