OptionsServiceCollectionExtensions.PostConfigure 方法

定义

重载

PostConfigure<TOptions>(IServiceCollection, Action<TOptions>)

注册用于初始化特定类型的选项的操作。 这些都在 Configure<TOptions>(IServiceCollection, Action<TOptions>) 之后运行。

PostConfigure<TOptions>(IServiceCollection, String, Action<TOptions>)

注册用于配置特定类型的选项的操作。 这些都在 Configure<TOptions>(IServiceCollection, Action<TOptions>) 之后运行。

PostConfigure<TOptions>(IServiceCollection, Action<TOptions>)

Source:
OptionsServiceCollectionExtensions.cs
Source:
OptionsServiceCollectionExtensions.cs
Source:
OptionsServiceCollectionExtensions.cs
Source:
OptionsServiceCollectionExtensions.cs
Source:
OptionsServiceCollectionExtensions.cs

注册用于初始化特定类型的选项的操作。 这些都在 Configure<TOptions>(IServiceCollection, Action<TOptions>) 之后运行。

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

类型参数

TOptions

要配置的选项类型。

参数

services
IServiceCollection

要向其中添加服务的 IServiceCollection

configureOptions
Action<TOptions>

用于配置选项的操作。

返回

IServiceCollection,以便可以链接其他调用。

适用于

PostConfigure<TOptions>(IServiceCollection, String, Action<TOptions>)

Source:
OptionsServiceCollectionExtensions.cs
Source:
OptionsServiceCollectionExtensions.cs
Source:
OptionsServiceCollectionExtensions.cs
Source:
OptionsServiceCollectionExtensions.cs
Source:
OptionsServiceCollectionExtensions.cs

注册用于配置特定类型的选项的操作。 这些都在 Configure<TOptions>(IServiceCollection, Action<TOptions>) 之后运行。

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

类型参数

TOptions

要配置的选项类型。

参数

services
IServiceCollection

要向其中添加服务的 IServiceCollection

name
String

选项实例的名称。

configureOptions
Action<TOptions>

用于配置选项的操作。

返回

IServiceCollection,以便可以链接其他调用。

适用于