ContextualOptionsServiceCollectionExtensions Klasse

Definition

Erweiterungsmethoden zum Hinzufügen von Kontextoptionendiensten zum DI-Container.

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

Methoden

AddContextualOptions(IServiceCollection)

Fügt Dienste hinzu, die für die Verwendung kontextbezogener Optionen erforderlich sind.

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

Registriert eine Aktion, die verwendet wird, um einen bestimmten Optionstyp zu konfigurieren.

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

Erweiterungsmethoden zum Hinzufügen von Kontextoptionendiensten zum DI-Container.

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

Registriert eine Aktion, die verwendet wird, um einen bestimmten Optionstyp zu konfigurieren.

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

Erweiterungsmethoden zum Hinzufügen von Kontextoptionendiensten zum DI-Container.

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

Erweiterungsmethoden zum Hinzufügen von Kontextoptionendiensten zum DI-Container.

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

Erweiterungsmethoden zum Hinzufügen von Kontextoptionendiensten zum DI-Container.

Gilt für: