Nito.Disposables.SingleNonblockingDisposable<T>
A base class for disposables that need exactly-once semantics in a thread-safe way.
Whether this instance has been disposed (or is being disposed).
Creates a disposable for the specified context.
The actul disposal method, called only once from Dispose.
Disposes this instance.
Attempts to update the stored context. This method returns false if this instance has already been disposed (or is being disposed).