שתף באמצעות


ConfigurationChangeTokenSource<TOptions> Class

Definition

Creates IChangeTokens so that IOptionsMonitor<TOptions> gets notified when IConfiguration changes.

generic <typename TOptions>
public ref class ConfigurationChangeTokenSource : Microsoft::Extensions::Options::IOptionsChangeTokenSource<TOptions>
public class ConfigurationChangeTokenSource<TOptions> : Microsoft.Extensions.Options.IOptionsChangeTokenSource<TOptions>
type ConfigurationChangeTokenSource<'Options> = class
    interface IOptionsChangeTokenSource<'Options>
Public Class ConfigurationChangeTokenSource(Of TOptions)
Implements IOptionsChangeTokenSource(Of TOptions)

Type Parameters

TOptions
Inheritance
ConfigurationChangeTokenSource<TOptions>
Derived
Implements

Constructors

ConfigurationChangeTokenSource<TOptions>(IConfiguration)

Constructor taking the IConfiguration instance to watch.

ConfigurationChangeTokenSource<TOptions>(String, IConfiguration)

Constructor taking the IConfiguration instance to watch.

Properties

Name

The name of the option instance being changed.

Methods

Equals(Object)

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

(Inherited from Object)
GetChangeToken()

Returns the reloadToken from the IConfiguration.

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