INamedContextualOptions<TOptions,TContext> Interface

Definition

Provides functionality to retrieve named configured TOptions instances.

C#
public interface INamedContextualOptions<TOptions,TContext> : Microsoft.Extensions.Options.Contextual.IContextualOptions<TOptions,TContext> where TOptions : class where TContext : IOptionsContext

Type Parameters

TOptions

The type of options being requested.

TContext

A type defining the context for this request.

Implements

Methods

GetAsync(String, TContext, CancellationToken)

Gets the named configured TOptions instance.

GetAsync(TContext, CancellationToken)

Gets the configured TOptions instance.

(Inherited from IContextualOptions<TOptions,TContext>)

Applies to

Product Versions
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)