C# 클래스 Microsoft.Async.Transformations.DisposableAsyncFunction

A wrapper for an async factory and disposable.
상속: IDisposable
파일 보기 프로젝트 열기: rozele/Microsoft.Async.Transformations 1 사용 예제들

공개 메소드들

메소드 설명
DisposableAsyncFunction ( Task>.Func asyncFunction, IDisposable disposable ) : System

Instantiates a DisposableAsyncFunction.

Dispose ( ) : void

Disposes the IDisposable provided in the constructor.

InvokeAsync ( CancellationToken token ) : Task

Invokes the asynchronous function provided in the constructor.

메소드 상세

DisposableAsyncFunction() 공개 메소드

Instantiates a DisposableAsyncFunction.
public DisposableAsyncFunction ( Task>.Func asyncFunction, IDisposable disposable ) : System
asyncFunction Task>.Func An asynchronous function.
disposable IDisposable A disposable.
리턴 System

Dispose() 공개 메소드

Disposes the IDisposable provided in the constructor.
public Dispose ( ) : void
리턴 void

InvokeAsync() 공개 메소드

Invokes the asynchronous function provided in the constructor.
public InvokeAsync ( CancellationToken token ) : Task
token System.Threading.CancellationToken /// A token to cancel the asynchronous request. ///
리턴 Task