C# Class PortableRx.Reactive.Disposables.RefCountDisposable

Represents a disposable resource that only disposes its underlying disposable resource when all dependent disposable objects have been disposed.
Inheritance: ICancelable
Show file Open project: robfe/PortableRx Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void

Disposes the underlying disposable only when all dependent disposables have been disposed.

RefCountDisposable ( IDisposable disposable ) : System

Initializes a new instance of the T:Catch.Reactive.Disposables.RefCountDisposable class with the specified disposable.

Private Methods

Method Description
GetDisposable ( ) : IDisposable
Release ( ) : void

Method Details

Dispose() public method

Disposes the underlying disposable only when all dependent disposables have been disposed.
public Dispose ( ) : void
return void

RefCountDisposable() public method

Initializes a new instance of the T:Catch.Reactive.Disposables.RefCountDisposable class with the specified disposable.
is null.
public RefCountDisposable ( IDisposable disposable ) : System
disposable IDisposable Underlying disposable.
return System