C# 클래스 Brod.Common.Tasks.TaskEngine

TaskEngine that starts, waits or cancells execution of Tasks
상속: IDisposable
파일 보기 프로젝트 열기: paralect/brod 1 사용 예제들

공개 메소드들

메소드 설명
Dispose ( ) : void

Try to dispose all tasks

Start ( CancellationToken token, Int32 timeout ) : Task

Start engine host. This will start each task in registered in this host.

TaskEngine ( ) : System

Constructor overload

TaskEngine ( ICollection tasks ) : System

Constructs TaskEngine with specified non-empty collection of tasks

비공개 메소드들

메소드 설명
Initialize ( ) : void

Initialize Engine TaskEngine

메소드 상세

Dispose() 공개 메소드

Try to dispose all tasks
public Dispose ( ) : void
리턴 void

Start() 공개 메소드

Start engine host. This will start each task in registered in this host.
public Start ( CancellationToken token, Int32 timeout ) : Task
token System.Threading.CancellationToken /// A CancellationToken to observe while waiting for the tasks to complete. ///
timeout System.Int32 /// The number of milliseconds to wait, or Infinite (-1) to wait indefinitely ///
리턴 Task

TaskEngine() 공개 메소드

Constructor overload
public TaskEngine ( ) : System
리턴 System

TaskEngine() 공개 메소드

Constructs TaskEngine with specified non-empty collection of tasks
public TaskEngine ( ICollection tasks ) : System
tasks ICollection
리턴 System