C# Класс Deeply.TaskBase

Task class definition.
Наследование: ITask
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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