共用方式為


Microsoft.Extensions.Options.Contextual Namespace

Classes

OptionsContextAttribute

Generates an implementation of IOptionsContext for the annotated type.

Interfaces

IContextualOptions<TOptions,TContext>

Provides functionality to retrieve configured TOptions instances.

INamedContextualOptions<TOptions,TContext>

Provides functionality to retrieve named configured TOptions instances.

IOptionsContext

The context used to configure contextual options.