Microsoft.Extensions.Options Namespace

Provides types used for implementing the options pattern.

Classes

Name Description
AsyncValidateOptions

Implementation of IAsyncValidateOptions.

AsyncValidateOptions

Implementation of IAsyncValidateOptions.

AsyncValidateOptions

Implementation of IAsyncValidateOptions.

AsyncValidateOptions

Implementation of IAsyncValidateOptions.

AsyncValidateOptions

Implementation of IAsyncValidateOptions.

AsyncValidateOptions

Implementation of IAsyncValidateOptions.

ConfigurationChangeTokenSource

Creates IChangeTokens so that IOptionsMonitor gets notified when IConfiguration changes.

ConfigureFromConfigurationOptions

Configures an option instance by using Bind(IConfiguration, Object) against an IConfiguration.

ConfigureNamedOptions

Implementation of IConfigureNamedOptions.

ConfigureNamedOptions

Implementation of IConfigureNamedOptions.

ConfigureNamedOptions

Implementation of IConfigureNamedOptions.

ConfigureNamedOptions

Implementation of IConfigureNamedOptions.

ConfigureNamedOptions

Implementation of IConfigureNamedOptions.

ConfigureNamedOptions

Implementation of IConfigureNamedOptions.

ConfigureOptions

Implementation of IConfigureOptions.

DataAnnotationValidateOptions

Implementation of IValidateOptions that uses DataAnnotation's Validator for validation.

NamedConfigureFromConfigurationOptions

Configures an option instance by using Bind(IConfiguration, Object) against an IConfiguration.

Options

Helper class for options.

OptionsBuilder

Configures TOptions instances.

OptionsCache

Caches TOptions instances.

OptionsFactory

Implementation of IOptionsFactory.

OptionsManager

Implements IOptions and IOptionsSnapshot.

OptionsMonitor

Implements IOptionsMonitor.

OptionsMonitorExtensions

Extension methods for IOptionsMonitor.

OptionsValidationException

Represents the exception that's thrown when options validation fails.

OptionsValidatorAttribute

Triggers the automatic generation of the implementation of IValidateOptions at compile time.

OptionsWrapper

Wraps the options instance.

PostConfigureOptions

Implementation of IPostConfigureOptions.

PostConfigureOptions

Implementation of IPostConfigureOptions.

PostConfigureOptions

Implementation of IPostConfigureOptions.

PostConfigureOptions

Implementation of IPostConfigureOptions.

PostConfigureOptions

Implementation of IPostConfigureOptions.

PostConfigureOptions

Implementation of IPostConfigureOptions.

ValidateEnumeratedItemsAttribute

Marks a field or property to be enumerated; each enumerated object is validated.

ValidateObjectMembersAttribute

Marks a field or property to be validated transitively.

ValidateOptions

Implementation of IValidateOptions

ValidateOptions

Implementation of IValidateOptions

ValidateOptions

Implementation of IValidateOptions.

ValidateOptions

Implementation of IValidateOptions

ValidateOptions

Implementation of IValidateOptions

ValidateOptions

Implementation of IValidateOptions

ValidateOptionsResult

Represents the result of an options validation.

ValidateOptionsResultBuilder

Builds ValidateOptionsResult with support for multiple error messages.

Interfaces

Name Description
IAsyncStartupValidator

Provides asynchronous options validation during host startup.

IAsyncValidateOptions

Asynchronously validates options.

IConfigureNamedOptions

Represents something that configures the TOptions type.

IConfigureOptions

Represents something that configures the TOptions type.

IOptions

Retrieves configured TOptions instances.

IOptionsChangeTokenSource

Fetches a IChangeToken that's used for tracking options changes.

IOptionsFactory

Creates TOptions instances.

IOptionsMonitor

Monitors changes on a TOptions instance.

IOptionsMonitorCache

Used by IOptionsMonitor to cache TOptions instances.

IOptionsSnapshot

Used to access the value of TOptions for the lifetime of a request.

IPostConfigureOptions

Represents something that configures the TOptions type.

IStartupValidator

Provides synchronous options validation during host startup.

IValidateOptions

Validates options.

Remarks

For more information about implementing the options pattern, see Options pattern in .NET.