C# 클래스 Deeply.TaskBase

Task class definition.
상속: ITask
파일 보기 프로젝트 열기: jsnape/deeply 1 사용 예제들

공개 메소드들

메소드 설명
Execute ( ITaskContext context ) : void

Executes the task synchronously.

The default implementation just calls ExecuteAsync and waits for the call to complete.

ExecuteAsync ( ITaskContext context ) : System.Threading.Tasks.Task

Executes the task asynchronously.

Verify ( ITaskContext context ) : void

Verifies the task synchronously.

The default implementation just calls VerifyAsync and waits for the call to complete.

VerifyAsync ( ITaskContext context ) : System.Threading.Tasks.Task

Verifies the task asynchronously.

보호된 메소드들

메소드 설명
ExecuteInternalAsync ( ITaskContext context ) : System.Threading.Tasks.Task

Implementation function for the execution.

NextTaskName ( ) : string

Helper function to return a default task name.

TaskBase ( ) : System

Initializes a new instance of the TaskBase class with a generated name.

TaskBase ( string name ) : System

Initializes a new instance of the TaskBase class with the supplied name.

VerifyInternalAsync ( ITaskContext context ) : System.Threading.Tasks.Task

Implementation function for the verification.

메소드 상세

Execute() 공개 메소드

Executes the task synchronously.
The default implementation just calls ExecuteAsync and waits for the call to complete.
public Execute ( ITaskContext context ) : void
context ITaskContext Execution context.
리턴 void

ExecuteAsync() 공개 메소드

Executes the task asynchronously.
public ExecuteAsync ( ITaskContext context ) : System.Threading.Tasks.Task
context ITaskContext Execution context.
리턴 System.Threading.Tasks.Task

ExecuteInternalAsync() 보호된 추상적인 메소드

Implementation function for the execution.
protected abstract ExecuteInternalAsync ( ITaskContext context ) : System.Threading.Tasks.Task
context ITaskContext Verification context.
리턴 System.Threading.Tasks.Task

NextTaskName() 보호된 정적인 메소드

Helper function to return a default task name.
protected static NextTaskName ( ) : string
리턴 string

TaskBase() 보호된 메소드

Initializes a new instance of the TaskBase class with a generated name.
protected TaskBase ( ) : System
리턴 System

TaskBase() 보호된 메소드

Initializes a new instance of the TaskBase class with the supplied name.
protected TaskBase ( string name ) : System
name string Task name.
리턴 System

Verify() 공개 메소드

Verifies the task synchronously.
The default implementation just calls VerifyAsync and waits for the call to complete.
public Verify ( ITaskContext context ) : void
context ITaskContext Verification context.
리턴 void

VerifyAsync() 공개 메소드

Verifies the task asynchronously.
public VerifyAsync ( ITaskContext context ) : System.Threading.Tasks.Task
context ITaskContext Verification context.
리턴 System.Threading.Tasks.Task

VerifyInternalAsync() 보호된 메소드

Implementation function for the verification.
protected VerifyInternalAsync ( ITaskContext context ) : System.Threading.Tasks.Task
context ITaskContext Verification context.
리턴 System.Threading.Tasks.Task