C# Class StompNet.Helpers.AsyncActionDisposable

IAsyncDisposable implementation that calls a custom action when it is disposed.
Inheritance: IAsyncDisposable
Exibir arquivo Open project: krlito/StompNet

Public Methods

Method Description
AsyncActionDisposable ( Task>.Func action ) : System

Constructor.

Dispose ( ) : void
DisposeAsync ( CancellationToken cancellationToken ) : Task

Method Details

AsyncActionDisposable() public method

Constructor.
public AsyncActionDisposable ( Task>.Func action ) : System
action Task>.Func Action to be invoked when this instance is disposed.
return System

Dispose() public method

public Dispose ( ) : void
return void

DisposeAsync() public method

public DisposeAsync ( CancellationToken cancellationToken ) : Task
cancellationToken System.Threading.CancellationToken
return Task