ContextualOptionsServiceCollectionExtensions Sınıf

Tanım

DI kapsayıcısına bağlamsal seçenek hizmetleri eklemek için uzantı yöntemleri.

public ref class ContextualOptionsServiceCollectionExtensions abstract sealed
public static class ContextualOptionsServiceCollectionExtensions
type ContextualOptionsServiceCollectionExtensions = class
Public Module ContextualOptionsServiceCollectionExtensions
Devralma
ContextualOptionsServiceCollectionExtensions

Yöntemler

AddContextualOptions(IServiceCollection)

Bağlamsal seçenekleri kullanmak için gereken hizmetleri ekler.

Configure<TOptions>(IServiceCollection, Action<IOptionsContext,TOptions>)

Belirli bir seçenek türünü yapılandırmak için kullanılan eylemi kaydeder.

Configure<TOptions>(IServiceCollection, Func<IOptionsContext,CancellationToken,ValueTask<IConfigureContextualOptions<TOptions>>>)

DI kapsayıcısına bağlamsal seçenek hizmetleri eklemek için uzantı yöntemleri.

Configure<TOptions>(IServiceCollection, String, Action<IOptionsContext,TOptions>)

Belirli bir seçenek türünü yapılandırmak için kullanılan eylemi kaydeder.

Configure<TOptions>(IServiceCollection, String, Func<IOptionsContext,CancellationToken,ValueTask<IConfigureContextualOptions<TOptions>>>)

DI kapsayıcısına bağlamsal seçenek hizmetleri eklemek için uzantı yöntemleri.

ConfigureAll<TOptions>(IServiceCollection, Action<IOptionsContext,TOptions>)

DI kapsayıcısına bağlamsal seçenek hizmetleri eklemek için uzantı yöntemleri.

ConfigureAll<TOptions>(IServiceCollection, Func<IOptionsContext,CancellationToken,ValueTask<IConfigureContextualOptions<TOptions>>>)

DI kapsayıcısına bağlamsal seçenek hizmetleri eklemek için uzantı yöntemleri.

Şunlara uygulanır