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

Name Beschreibung
AddContextualOptions(IServiceCollection)

Fügt Dienste hinzu, die für die Verwendung von Kontextoptionen erforderlich sind.

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

Registriert eine Aktion, die zum Konfigurieren eines bestimmten Optionstyps verwendet wird.

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

Registriert eine Aktion, die zum Konfigurieren eines bestimmten Optionstyps verwendet wird.

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

Registriert eine Aktion, die zum Konfigurieren eines bestimmten Optionstyps verwendet wird.

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

Registriert eine Aktion, die zum Konfigurieren eines bestimmten Optionstyps verwendet wird.

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

Registriert eine Aktion, die zum Konfigurieren aller Instanzen eines bestimmten Optionstyps verwendet wird.

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

Registriert eine Aktion, die zum Konfigurieren aller Instanzen eines bestimmten Optionstyps verwendet wird.

Gilt für: