C# Class Deeply.TaskBase

Task class definition.
Inheritance: ITask
Show file Open project: jsnape/deeply Class Usage Examples

Public Methods

Method Description
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.

Protected Methods

Method Description
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.

Method Details

Execute() public method

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.
return void

ExecuteAsync() public method

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

ExecuteInternalAsync() protected abstract method

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

NextTaskName() protected static method

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

TaskBase() protected method

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

TaskBase() protected method

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

Verify() public method

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.
return void

VerifyAsync() public method

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

VerifyInternalAsync() protected method

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