ConfigureNamedOptions<TOptions,TDep1,TDep2> Class

Definition

public class ConfigureNamedOptions<TOptions,TDep1,TDep2> : Microsoft.Extensions.Options.IConfigureNamedOptions<TOptions>, Microsoft.Extensions.Options.IConfigureOptions<TOptions> where TOptions : class where TDep1 : class where TDep2 : class

Type Parameters

TOptions

Options type being configured.

TDep1

First dependency type.

TDep2

Second dependency type.

Inheritance
ConfigureNamedOptions<TOptions,TDep1,TDep2>
Implements

Constructors

Properties

Action

The configuration action.

Dependency1

The first dependency.

Dependency2

The second dependency.

Name

The options name.

Methods

Configure(String, TOptions)

Invokes the registered configure Action if the name matches.

Configure(TOptions)

Invoked to configure a TOptions instance with the DefaultName.

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to

Prodotto Versioni
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)
.NET Standard 2.0 (package-provided), 2.1 (package-provided)