Dispose()
Synchronously disposes the current CachingBackend. In case the CachingBackend has pending background tasks (typically cache non-blocking cache update tasks for distributed backends), it will wait until all tasks are processed.
Declaration
public void Dispose()
Implements
Dispose(CancellationToken)
Synchronously disposes the current CachingBackend. This overloads accepts a CancellationToken. In case the CachingBackend has pending background tasks (typically cache non-blocking cache update tasks for distributed backends), it will wait until all tasks are processed.
Declaration
public void Dispose(CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
CancellationToken | cancellationToken | A CancellationToken. Cancelling this operation may cause cache inconsistencies, in case of distributed cache, or failure to properly dispose of other resources owned by this object. |
Dispose(bool, CancellationToken)
Synchronously disposes the current CachingBackend, with a parameter instructing whether this method is called because of a call to the Dispose() method or because of object finalizing.
Declaration
protected void Dispose(bool disposing, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
bool | disposing |
|
CancellationToken | cancellationToken |