Bagikan melalui


OptionsServiceCollectionExtensions.PostConfigure Metode

Definisi

Overload

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

Mendaftarkan tindakan yang digunakan untuk menginisialisasi jenis opsi tertentu. Ini dijalankan setelah Configure<TOptions>(IServiceCollection, Action<TOptions>).

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

Mendaftarkan tindakan yang digunakan untuk mengonfigurasi jenis opsi tertentu. Ini dijalankan setelah Configure<TOptions>(IServiceCollection, Action<TOptions>).

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

Sumber:
OptionsServiceCollectionExtensions.cs
Sumber:
OptionsServiceCollectionExtensions.cs
Sumber:
OptionsServiceCollectionExtensions.cs
Sumber:
OptionsServiceCollectionExtensions.cs
Sumber:
OptionsServiceCollectionExtensions.cs

Mendaftarkan tindakan yang digunakan untuk menginisialisasi jenis opsi tertentu. Ini dijalankan setelah 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

Jenis parameter

TOptions

Jenis opsi yang akan dikonfigurasi.

Parameter

services
IServiceCollection

untuk IServiceCollection menambahkan layanan.

configureOptions
Action<TOptions>

Tindakan yang digunakan untuk mengonfigurasi opsi.

Mengembalikan

IServiceCollection Sehingga panggilan tambahan dapat dirangkai.

Berlaku untuk

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

Sumber:
OptionsServiceCollectionExtensions.cs
Sumber:
OptionsServiceCollectionExtensions.cs
Sumber:
OptionsServiceCollectionExtensions.cs
Sumber:
OptionsServiceCollectionExtensions.cs
Sumber:
OptionsServiceCollectionExtensions.cs

Mendaftarkan tindakan yang digunakan untuk mengonfigurasi jenis opsi tertentu. Ini dijalankan setelah 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

Jenis parameter

TOptions

Jenis opsi yang akan dikonfigurasi.

Parameter

services
IServiceCollection

untuk IServiceCollection menambahkan layanan.

name
String

Nama instans opsi.

configureOptions
Action<TOptions>

Tindakan yang digunakan untuk mengonfigurasi opsi.

Mengembalikan

IServiceCollection Sehingga panggilan tambahan dapat dirangkai.

Berlaku untuk