C# Class Deeply.TaskBase

Task class definition.
Inheritance: ITask
Afficher le fichier Open project: jsnape/deeply Class Usage Examples

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode 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 méthode

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.
Résultat void

ExecuteAsync() public méthode

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

ExecuteInternalAsync() protected abstract méthode

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

NextTaskName() protected static méthode

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

TaskBase() protected méthode

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

TaskBase() protected méthode

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

Verify() public méthode

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.
Résultat void

VerifyAsync() public méthode

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

VerifyInternalAsync() protected méthode

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