Microsoft.Extensions.Options Naamruimte

Biedt typen die worden gebruikt voor het implementeren van het optiespatroon.

Klassen

Name Description
AsyncValidateOptions<TOptions>

Implementatie van IAsyncValidateOptions<TOptions>.

AsyncValidateOptions<TOptions,TDep>

Implementatie van IAsyncValidateOptions<TOptions>.

AsyncValidateOptions<TOptions,TDep1,TDep2>

Implementatie van IAsyncValidateOptions<TOptions>.

AsyncValidateOptions<TOptions,TDep1,TDep2,TDep3>

Implementatie van IAsyncValidateOptions<TOptions>.

AsyncValidateOptions<TOptions,TDep1,TDep2,TDep3,TDep4>

Implementatie van IAsyncValidateOptions<TOptions>.

AsyncValidateOptions<TOptions,TDep1,TDep2,TDep3,TDep4,TDep5>

Implementatie van IAsyncValidateOptions<TOptions>.

ConfigurationChangeTokenSource<TOptions>

Hiermee maakt u IChangeTokeneen melding wanneer IOptionsMonitor<TOptions>IConfiguration er wijzigingen worden aangebracht.

ConfigureFromConfigurationOptions<TOptions>

Hiermee configureert u een optie-exemplaar met behulp van Bind(IConfiguration, Object) een IConfiguration.

ConfigureNamedOptions<TOptions>

Implementatie van IConfigureNamedOptions<TOptions>.

ConfigureNamedOptions<TOptions,TDep>

Implementatie van IConfigureNamedOptions<TOptions>.

ConfigureNamedOptions<TOptions,TDep1,TDep2>

Implementatie van IConfigureNamedOptions<TOptions>.

ConfigureNamedOptions<TOptions,TDep1,TDep2,TDep3>

Implementatie van IConfigureNamedOptions<TOptions>.

ConfigureNamedOptions<TOptions,TDep1,TDep2,TDep3,TDep4>

Implementatie van IConfigureNamedOptions<TOptions>.

ConfigureNamedOptions<TOptions,TDep1,TDep2,TDep3,TDep4,TDep5>

Implementatie van IConfigureNamedOptions<TOptions>.

ConfigureOptions<TOptions>

Implementatie van IConfigureOptions<TOptions>.

DataAnnotationValidateOptions<TOptions>

Implementatie hiervan maakt gebruik van IValidateOptions<TOptions> DataAnnotation Validator voor validatie.

NamedConfigureFromConfigurationOptions<TOptions>

Hiermee configureert u een optie-exemplaar met behulp van Bind(IConfiguration, Object) een IConfiguration.

Options

Helperklasse voor opties.

OptionsBuilder<TOptions>

Hiermee configureert u exemplaren TOptions .

OptionsCache<TOptions>

Slaat exemplaren TOptions in de cache op.

OptionsFactory<TOptions>

Implementatie van IOptionsFactory<TOptions>.

OptionsManager<TOptions>

IOptions<TOptions> Implementeert en IOptionsSnapshot<TOptions>.

OptionsMonitor<TOptions>

Implementeert IOptionsMonitor<TOptions>.

OptionsMonitorExtensions

Extensiemethoden voor IOptionsMonitor<TOptions>.

OptionsValidationException

Vertegenwoordigt de uitzondering die wordt gegenereerd wanneer de validatie van opties mislukt.

OptionsValidatorAttribute

Activeert de automatische generatie van de implementatie van IValidateOptions<TOptions> tijdens het compileren.

OptionsWrapper<TOptions>

Verpakt het exemplaar van de opties.

PostConfigureOptions<TOptions>

Implementatie van IPostConfigureOptions<TOptions>.

PostConfigureOptions<TOptions,TDep>

Implementatie van IPostConfigureOptions<TOptions>.

PostConfigureOptions<TOptions,TDep1,TDep2>

Implementatie van IPostConfigureOptions<TOptions>.

PostConfigureOptions<TOptions,TDep1,TDep2,TDep3>

Implementatie van IPostConfigureOptions<TOptions>.

PostConfigureOptions<TOptions,TDep1,TDep2,TDep3,TDep4>

Implementatie van IPostConfigureOptions<TOptions>.

PostConfigureOptions<TOptions,TDep1,TDep2,TDep3,TDep4,TDep5>

Implementatie van IPostConfigureOptions<TOptions>.

ValidateEnumeratedItemsAttribute

Hiermee wordt een veld of eigenschap gemarkeerd die moet worden geïnventariseerd; elk geïnventariseerd object wordt gevalideerd.

ValidateObjectMembersAttribute

Hiermee wordt een veld of eigenschap gemarkeerd die transitief moet worden gevalideerd.

ValidateOptions<TOptions>

Implementatie van IValidateOptions<TOptions>

ValidateOptions<TOptions,TDep>

Implementatie van IValidateOptions<TOptions>

ValidateOptions<TOptions,TDep1,TDep2>

Implementatie van IValidateOptions<TOptions>.

ValidateOptions<TOptions,TDep1,TDep2,TDep3>

Implementatie van IValidateOptions<TOptions>

ValidateOptions<TOptions,TDep1,TDep2,TDep3,TDep4>

Implementatie van IValidateOptions<TOptions>

ValidateOptions<TOptions,TDep1,TDep2,TDep3,TDep4,TDep5>

Implementatie van IValidateOptions<TOptions>

ValidateOptionsResult

Vertegenwoordigt het resultaat van een optiesvalidatie.

ValidateOptionsResultBuilder

Builds ValidateOptionsResult met ondersteuning voor meerdere foutberichten.

Interfaces

Name Description
IAsyncStartupValidator

Wordt door hosts gebruikt om opties asynchroon te valideren tijdens het opstarten.

IAsyncValidateOptions<TOptions>

Valideert asynchroon opties.

IConfigureNamedOptions<TOptions>

Vertegenwoordigt iets dat het TOptions type configureert.

IConfigureOptions<TOptions>

Vertegenwoordigt iets dat het TOptions type configureert.

IOptions<TOptions>

Hiermee worden geconfigureerde TOptions exemplaren opgehaald.

IOptionsChangeTokenSource<TOptions>

Hiermee wordt een IChangeToken wijziging opgehaald die wordt gebruikt voor het bijhouden van opties.

IOptionsFactory<TOptions>

Hiermee maakt u TOptions exemplaren.

IOptionsMonitor<TOptions>

Controleert wijzigingen in een TOptions exemplaar.

IOptionsMonitorCache<TOptions>

Wordt gebruikt voor IOptionsMonitor<TOptions> het opslaan van exemplaren in de cache TOptions .

IOptionsSnapshot<TOptions>

Wordt gebruikt voor toegang tot de waarde voor TOptions de levensduur van een aanvraag.

IPostConfigureOptions<TOptions>

Vertegenwoordigt iets dat het TOptions type configureert.

IStartupValidator

Wordt door hosts gebruikt om opties te valideren tijdens het opstarten.

IValidateOptions<TOptions>

Valideert opties.

Opmerkingen

Zie Options-patroon in .NET voor meer informatie over het implementeren van het optiespatroon.