ConfigurationReloadToken 类

定义

实现 IChangeTokenImplements IChangeToken

public ref class ConfigurationReloadToken : Microsoft::Extensions::Primitives::IChangeToken
public class ConfigurationReloadToken : Microsoft.Extensions.Primitives.IChangeToken
type ConfigurationReloadToken = class
    interface IChangeToken
Public Class ConfigurationReloadToken
Implements IChangeToken
继承
ConfigurationReloadToken
实现

构造函数

ConfigurationReloadToken()

属性

ActiveChangeCallbacks

指示此令牌是否将主动引发回叫。Indicates if this token will proactively raise callbacks. 最终仍保证调用回叫。Callbacks are still guaranteed to be invoked, eventually.

HasChanged

获取一个指示是否发生更改的值。Gets a value that indicates if a change has occurred.

方法

Equals(Object)

确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
OnReload()

用于在发生重载时触发更改令牌。Used to trigger the change token when a reload occurs.

RegisterChangeCallback(Action<Object>, Object)

注册将在项更改时调用的回叫。Registers for a callback that will be invoked when the entry has changed. 调用回叫之前,必须设置 HasChangedHasChanged MUST be set before the callback is invoked.

ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(继承自 Object)

适用于