Click or drag to resize

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.
Inheritance Hierarchy
SystemObject
  MFiles.VAF.MultiserverModeCancellableOperationApplicationTask
    MFiles.VAF.MultiserverModeAsyncProcessingOperationApplicationTask
      MFiles.VAF.MultiserverModeApplicationTaskOperation
        MFiles.VAF.MultiserverModeTaskProcessorJob

Namespace:  MFiles.VAF.MultiserverMode
Assembly:  MFiles.VAF (in MFiles.VAF.dll) Version: 2.2.0.9
Syntax
C#
public class TaskProcessorJob : ApplicationTaskOperation, 
	IDeepCloneable

The TaskProcessorJob type exposes the following members.

Constructors
  NameDescription
Public methodTaskProcessorJob
Self initializing constructor.
Top
Properties
  NameDescription
Public propertyAppTaskActivationTimestamp
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.
Public propertyAppTaskData
Resolves the data, byte[].
Public propertyAppTaskId
Resolves the task|broadcast_message id.
Public propertyAppTaskIsBroadcastMessage
Resolves the queue identifier.
Public propertyAppTaskIsNull
Flag to denote if the appTask is null.
Public propertyAppTaskLatestActivityTimestamp
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.
Public propertyAppTaskQueueId
Resolves the queue identifier.
Public propertyAppTaskState
Resolves the state value. Note: - This is only valid for ApplicationBroadcast Task types. - Broadcast message types always return MFTaskStateNone.
Public propertyAppTaskType
Resolves the task type or broadcast message type.
Public propertyData
Data value clone container.
(Inherited from CancellableOperationT.)
Public propertyFailureException
Holds the failure exception, if the processing had an un-handled failure.
(Inherited from AsyncProcessingOperationT.)
Public propertyJobState
Processing state of the async job.
(Inherited from AsyncProcessingOperationT.)
Protected propertyLinkedTokenSource
Protected linked cancellation token source. - Used to request cancellation of the process.
(Inherited from CancellableOperationT.)
Protected propertyQueueDef
Task QueueDef.
Public propertyTask
The system task that processes this operation.
(Inherited from CancellableOperationT.)
Protected propertyTaskHandler
The known task handler dictionary.
Public propertyToken
Linked cancellation token.
(Inherited from CancellableOperationT.)
Public propertyVault
Vault used in processing each task.
Top
Methods
  NameDescription
Protected methodAssignTaskForProcessing
Assigns a system task to process this job.
(Overrides ApplicationTaskOperationAssignTaskForProcessing(AsyncProcessingOperationArgsApplicationTask).)
Public methodCancel
Requests cancellation of the operation.
(Inherited from CancellableOperationT.)
Public methodCancelAfter
Requests cancellation of the operation.
(Inherited from CancellableOperationT.)
Public methodDeepClone
Created a deep clone of the task handler for use in reading via the processing report.
Protected methodOnCancellationRequested
Override the cancellation requested method to ensure only items with a valid state are updated.
(Inherited from AsyncProcessingOperationT.)
Public methodOnProcessingCompleted
Updates the last processed broadcast id for broadcast tasks.
(Overrides AsyncProcessingOperationTOnProcessingCompleted(AsyncProcessingOperationArgsT).)
Public methodOnProcessingFailed
Processing failed event invoker.
(Inherited from AsyncProcessingOperationT.)
Public methodOnProcessingStarted
Processing started event invocation.
(Inherited from AsyncProcessingOperationT.)
Public methodProcess
Begins the processing of the app task.
(Inherited from ApplicationTaskOperation.)
Public methodResetCancellationToken
Resets the cancellation token source.
(Inherited from CancellableOperationT.)
Public methodThrowIfCancellationRequested
If cancellation has been requested: - The CancellationRequest event is fired. - Then the cancellation exception is thrown.
(Inherited from CancellableOperationT.)
Protected methodThrowIfLessThanOne
Asserts the passed value is greater than zero.
(Inherited from AsyncProcessingOperationT.)
Protected methodThrowIfNull
Asserts the passed object is not null.
(Inherited from CancellableOperationT.)
Protected methodTriggerCancellationRequested
Triggers the cancellation requested event, for any registered listeners.
(Inherited from CancellableOperationT.)
Top
Events
See Also