Interface IChangeToken
Propagates notifications that a change has occurred.
public interface IChangeToken
- Extension Methods
Properties
ActiveChangeCallbacks
Indicates if this token will pro-actively raise callbacks. If false
, the token consumer must
poll HasChanged to detect changes.
bool ActiveChangeCallbacks { get; }
Property Value
HasChanged
Gets a value that indicates if a change has occurred.
bool HasChanged { get; }
Property Value
Methods
RegisterChangeCallback(Action<object>, object)
Registers for a callback that will be invoked when the entry has changed. HasChanged MUST be set before the callback is invoked.
IDisposable RegisterChangeCallback(Action<object> callback, object state)
Parameters
Returns
- IDisposable
An IDisposable that is used to unregister the callback.