ContextDisposable Constructor

Initializes a new instance of the ContextDisposable class that uses a SynchronizationContext on which to dispose the disposable.

Namespace:  System.Reactive.Disposables
Assembly:  System.Reactive (in System.Reactive.dll)

public ContextDisposable(
	SynchronizationContext context,
	IDisposable disposable
)

Parameters

context
Type: System.Threading.SynchronizationContext
The context to perform disposal on.
disposable
Type: System.IDisposable
The disposable whose Dispose operation to run on the given synchronization context.
Show: