Class ResourceChangeTracker
- Namespace
- Acuit.Pinpoint.ResourceManagement
- Assembly
- Acuit.Pinpoint.ResourceManagement.Abstractions.dll
A helper class that provides change tokens for a resource that can change over time.
public sealed class ResourceChangeTracker : IDisposable
- Inheritance
-
ResourceChangeTracker
- Implements
- Inherited Members
Constructors
ResourceChangeTracker()
public ResourceChangeTracker()
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
GetChangeToken()
Gets the change token representing the current state of the resource.
public IChangeToken GetChangeToken()
Returns
Remarks
Change tokens returned by this will pro-actively raise callbacks.
Exceptions
- ObjectDisposedException
The object has been disposed.
SignalChange()
Signals that the resource value has changed. Any change token that represented the previous state of the resource will signal that a change occurred, and new requests for change tokens will return a new change token representing the new state of the resource.
public void SignalChange()
Exceptions
- ObjectDisposedException
The object has been disposed.