Show / Hide Table of Contents

Class BatchTaskFacade

Local representation of a task that is processed in another process.

Inheritance
object
BatchTaskFacade
Implements
IBatchTask
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: SuperOffice.CRM.BatchProcessing
Assembly: SoBatchProcessing.dll
Syntax
public class BatchTaskFacade : IBatchTask

Constructors

BatchTaskFacade()

Local representation of a task that is processed in another process.

Declaration
public BatchTaskFacade()

Methods

EndTaskAsync(CancellationToken)

End the currently executing task.

Declaration
public Task EndTaskAsync(CancellationToken cancellationToken = default)
Parameters
Type Name Description
CancellationToken cancellationToken
Returns
Type Description
Task

GetTaskInfoAsync(CancellationToken)

Obtain information about the task.

Declaration
public Task<BatchTaskInfo> GetTaskInfoAsync(CancellationToken cancellationToken = default)
Parameters
Type Name Description
CancellationToken cancellationToken
Returns
Type Description
Task<BatchTaskInfo>

RunTaskAsync(BatchTaskInfo, string, BatchTaskStatusChangedAsync, CancellationToken)

Start a new task based on a task descriptiong include name

Declaration
public Task RunTaskAsync(BatchTaskInfo batchTaskInfo, string context, BatchTaskStatusChangedAsync onBatchTaskStatusChanged, CancellationToken cancellationToken = default)
Parameters
Type Name Description
BatchTaskInfo batchTaskInfo

Id, Name and state of the task.

string context

Context for the task.

BatchTaskStatusChangedAsync onBatchTaskStatusChanged

Callback for status changes of the task.

CancellationToken cancellationToken
Returns
Type Description
Task

Task info object with id, name, owner, state, result values

Implements

IBatchTask

Extension Methods

EnumUtil.MapEnums<From, To>(From)
Converters.MapEnums<From, To>(From)
ObjectExtensions.AssignByReflection<T>(T, T)
ObjectExtensions.GraphCopy<T>(T)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top