Class CompositeChangeToken
- Namespace
- Acuit.Pinpoint.Primitives
- Assembly
- Acuit.Pinpoint.Configuration.dll
An IChangeToken which represents one or more IChangeToken instances.
public class CompositeChangeToken : IChangeToken
- Inheritance
-
CompositeChangeToken
- Implements
- Inherited Members
Constructors
CompositeChangeToken(IReadOnlyList<IChangeToken>)
Creates a new instance of CompositeChangeToken.
public CompositeChangeToken(IReadOnlyList<IChangeToken> changeTokens)
Parameters
changeTokens
IReadOnlyList<IChangeToken>The list of IChangeToken to compose.
Properties
ActiveChangeCallbacks
Indicates if this token will pro-actively raise callbacks. If false, the token consumer must poll HasChanged to detect changes.
public bool ActiveChangeCallbacks { get; }
Property Value
ChangeTokens
Returns the list of IChangeToken which compose the current CompositeChangeToken.
public IReadOnlyList<IChangeToken> ChangeTokens { get; }
Property Value
HasChanged
Gets a value that indicates if a change has occurred.
public 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.
public IDisposable RegisterChangeCallback(Action<object> callback, object state)
Parameters
Returns
- IDisposable
An IDisposable that is used to unregister the callback.