C# Class PortableRx.Reactive.Disposables.ContextDisposable

Represents a disposable resource whose disposal invocation will be posted to the specified T:System.Threading.SynchronizationContext.
Inheritance: ICancelable
Show file Open project: robfe/PortableRx

Public Methods

Method Description
ContextDisposable ( SynchronizationContext context, IDisposable disposable ) : System

Initializes a new instance of the T:Catch.Reactive.Disposables.ContextDisposable class that uses the specified T:System.Threading.SynchronizationContext on which to dispose the specified disposable resource.

Dispose ( ) : void

Disposes the underlying disposable on the provided T:System.Threading.SynchronizationContext.

Method Details

ContextDisposable() public method

Initializes a new instance of the T:Catch.Reactive.Disposables.ContextDisposable class that uses the specified T:System.Threading.SynchronizationContext on which to dispose the specified disposable resource.
or is null.
public ContextDisposable ( SynchronizationContext context, IDisposable disposable ) : System
context System.Threading.SynchronizationContext Context to perform disposal on.
disposable IDisposable Disposable whose Dispose operation to run on the given synchronization context.
return System

Dispose() public method

Disposes the underlying disposable on the provided T:System.Threading.SynchronizationContext.
public Dispose ( ) : void
return void