ContextDisposable
Represents a disposable resource whose disposal invocation will be posted to the specified SynchronizationContext.
Gets the provided SynchronizationContext.
Gets a value that indicates whether the object is disposed.
Initializes a new instance of the ContextDisposable class that uses the specified SynchronizationContext on which to dispose the specified disposable resource.
Disposes the underlying disposable on the provided SynchronizationContext.