/
Type definitions - IBulkCheckService - Asynchronous Task-related types

Type definitions - IBulkCheckService - Asynchronous Task-related types

TaskResult class

Class definition
public abstract class TaskResult
{
}

Base type for an asynchronous check result representation.

Depending on which method was used to start the task, concrete type returned may vary. For information on which type to expect, see "Task result" sections of method definitions.

TaskStatus class

Class definition
public class TaskStatus
{
    public TaskState State { get; set; }
    public TaskErrorInfo ErrorInfo { get; set; }
}

Represents task status.

Property nameMeaning
StateCurrent task state
ErrorInfoError description if the task is in "Failed" state

TaskState enumeration

Enum definition
public enum TaskState
{
    InProgress,
    Pending,
    Success,
    Failed
}

Represents task state.

ValueMeaning
InProgressTask is in progress
PendingTask is queued for execution
SuccessTask has finished
FailedAn error occured while executing the task

TaskErrorInfo class

Class definition
public class TaskErrorInfo
{
    public int Code { get; set; }
    public string Message { get; set; }
}

Represents error information.

Property nameMeaning
CodeError code
MessageCorresponding message