TaskProcessorJob Class

The task processor job class is the async processing operations specific to ApplicationTask's that are being processed by a IApplicationTaskProcessor. This class: - Has a guid identifier. - Holds a reference to the vault. - Contains a processing report. - Exposes the immutable properties of the Application Task, so they are available without accessing the COM object.

Definition

Namespace: MFiles.VAF.MultiserverMode
Assembly: MFiles.VAF (in MFiles.VAF.dll) Version: 24.1.706.1
C#
public class TaskProcessorJob : ApplicationTaskOperation, 
	IDeepCloneable
Inheritance
Object    CancellableOperation<ApplicationTask>    AsyncProcessingOperation<ApplicationTask>    ApplicationTaskOperation    TaskProcessorJob
Implements
IDeepCloneable

Constructors

TaskProcessorJob Self initializing constructor.

Properties

AppTaskActivationTimestamp The ActivationTimestamp for the application task. - This is only valid for ApplicationBroadcast Task types. - Broadcast message types always return a time stamp with a MinValue.
AppTaskData Resolves the data, byte[].
AppTaskId Resolves the task|broadcast_message id.
AppTaskIsBroadcastMessage Resolves the queue identifier.
AppTaskIsNull Flag to denote if the appTask is null.
AppTaskLatestActivityTimestamp The LatestActivityTimestamp for the application task. - This is only valid for ApplicationBroadcast Task types. - Broadcast message types always return a time stamp with a MinValue.
AppTaskQueueId Resolves the queue identifier.
AppTaskState Resolves the state value. Note: - This is only valid for ApplicationBroadcast Task types. - Broadcast message types always return MFTaskStateNone.
AppTaskType Resolves the task type or broadcast message type.
Data Data value clone container.
(Inherited from CancellableOperation<T>)
FailureException Holds the failure exception, if the processing had an un-handled failure.
(Inherited from AsyncProcessingOperation<T>)
JobState Processing state of the async job.
(Inherited from AsyncProcessingOperation<T>)
LinkedTokenSource Protected linked cancellation token source. - Used to request cancellation of the process.
(Inherited from CancellableOperation<T>)
QueueDef Task QueueDef.
Task The system task that processes this operation.
(Inherited from CancellableOperation<T>)
TaskHandler The known task handler dictionary.
Token Linked cancellation token.
(Inherited from CancellableOperation<T>)
Vault Vault used in processing each task.

Methods

AssignTaskForProcessing Assigns a system task to process this job.
(Overrides ApplicationTaskOperation.AssignTaskForProcessing(AsyncProcessingOperationArgs<ApplicationTask>))
Cancel Requests cancellation of the operation.
(Inherited from CancellableOperation<T>)
CancelAfter Requests cancellation of the operation.
(Inherited from CancellableOperation<T>)
DeepClone Created a deep clone of the task handler for use in reading via the processing report.
OnCancellationRequested Override the cancellation requested method to ensure only items with a valid state are updated.
(Inherited from AsyncProcessingOperation<T>)
OnProcessingCompleted Updates the last processed broadcast id for broadcast tasks.
(Overrides AsyncProcessingOperation<T>.OnProcessingCompleted(AsyncProcessingOperationArgs<T>))
OnProcessingFailed Processing failed event invoker.
(Inherited from AsyncProcessingOperation<T>)
OnProcessingStarted Processing started event invocation.
(Inherited from AsyncProcessingOperation<T>)
Process Begins the processing of the app task.
(Inherited from ApplicationTaskOperation)
ResetCancellationToken Resets the cancellation token source.
(Inherited from CancellableOperation<T>)
ThrowIfCancellationRequested If cancellation has been requested: - The CancellationRequest event is fired. - Then the cancellation exception is thrown.
(Inherited from CancellableOperation<T>)
ThrowIfLessThanOne Asserts the passed value is greater than zero.
(Inherited from AsyncProcessingOperation<T>)
ThrowIfNull Asserts the passed object is not null.
(Inherited from CancellableOperation<T>)
TriggerCancellationRequested Triggers the cancellation requested event, for any registered listeners.
(Inherited from CancellableOperation<T>)

Events

CancellationRequested Event fired on cancellation requested.
(Inherited from CancellableOperation<T>)
ProcessingCompleted Event fired on processing completed without failure.
(Inherited from AsyncProcessingOperation<T>)
ProcessingFailed Event fired on processing failure.
(Inherited from AsyncProcessingOperation<T>)
ProcessingStarted Processing has started event.
(Inherited from AsyncProcessingOperation<T>)

See Also