ContextualOptionsServiceCollectionExtensions Klas

Definitie

Extensiemethoden voor het toevoegen van contextuele optiesservices aan de DI-container.

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

Methoden

Name Description
AddContextualOptions(IServiceCollection)

Voegt services toe die vereist zijn voor het gebruik van contextuele opties.

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

Registreert een actie die wordt gebruikt om een bepaald type opties te configureren.

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

Registreert een actie die wordt gebruikt om een bepaald type opties te configureren.

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

Registreert een actie die wordt gebruikt om een bepaald type opties te configureren.

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

Registreert een actie die wordt gebruikt om een bepaald type opties te configureren.

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

Registreert een actie die wordt gebruikt om alle exemplaren van een bepaald type opties te configureren.

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

Registreert een actie die wordt gebruikt om alle exemplaren van een bepaald type opties te configureren.

Van toepassing op