ApplicationTaskOperation Class

The application task operation class is used to process an individual ApplicationTask. - This class exists primarily to implement the Process() method, using the - AsyncProcessingOperationT as the base structure that provides the needed events. The class: - Is cancellable. - Exposes events [ ProcessingStarted, ProcessingCompleted, ProcessingFailed, CancellationRequested, ]. - Holds a reference to: -- The Task that will execute the application task handler. -- The ApplicationTask from the application task queue in the vault that is being processed. -- The FailureException, when processing experiences an unhandled -- exception from inside the TaskHandler. Note: The Process() method handles all errors. Unhandled exceptions inside the TaskHandler delegate are exposed via the ProcessingFailed event.

Definition

Namespace: MFiles.VAF.MultiserverMode
Assembly: MFiles.VAF (in MFiles.VAF.dll) Version: 24.1.706.1
C#
public abstract class ApplicationTaskOperation : AsyncProcessingOperation<ApplicationTask>
Inheritance
Object    CancellableOperationApplicationTask    AsyncProcessingOperationApplicationTask    ApplicationTaskOperation
Derived

Constructors

ApplicationTaskOperation Self initializing constructor.

Properties

Data Data value clone container.
(Inherited from CancellableOperationT)
FailureException Holds the failure exception, if the processing had an un-handled failure.
(Inherited from AsyncProcessingOperationT)
JobState Processing state of the async job.
(Inherited from AsyncProcessingOperationT)
LinkedTokenSource Protected linked cancellation token source. - Used to request cancellation of the process.
(Inherited from CancellableOperationT)
Task The system task that processes this operation.
(Inherited from CancellableOperationT)
Token Linked cancellation token.
(Inherited from CancellableOperationT)

Methods

AssignTaskForProcessing Assigns a system task that processes the operation. try => OnProcessingStarted(AsyncProcessingOperationArgsT)() catch=> OnProcessingFailed(AsyncProcessingOperationArgsT, Exception)() finally => OnProcessingCompleted(AsyncProcessingOperationArgsT)()
Cancel Requests cancellation of the operation.
(Inherited from CancellableOperationT)
CancelAfter Requests cancellation of the operation.
(Inherited from CancellableOperationT)
OnCancellationRequested Override the cancellation requested method to ensure only items with a valid state are updated.
(Inherited from AsyncProcessingOperationT)
OnProcessingCompleted Processing completed event invocation.
(Inherited from AsyncProcessingOperationT)
OnProcessingFailed Processing failed event invoker.
(Inherited from AsyncProcessingOperationT)
OnProcessingStarted Processing started event invocation.
(Inherited from AsyncProcessingOperationT)
Process Begins the processing of the app task.
ResetCancellationToken Resets the cancellation token source.
(Inherited from CancellableOperationT)
ThrowIfCancellationRequested If cancellation has been requested: - The CancellationRequest event is fired. - Then the cancellation exception is thrown.
(Inherited from CancellableOperationT)
ThrowIfLessThanOne Asserts the passed value is greater than zero.
(Inherited from AsyncProcessingOperationT)
ThrowIfNull Asserts the passed object is not null.
(Inherited from CancellableOperationT)
TriggerCancellationRequested Triggers the cancellation requested event, for any registered listeners.
(Inherited from CancellableOperationT)

Events

CancellationRequested Event fired on cancellation requested.
(Inherited from CancellableOperationT)
ProcessingCompleted Event fired on processing completed without failure.
(Inherited from AsyncProcessingOperationT)
ProcessingFailed Event fired on processing failure.
(Inherited from AsyncProcessingOperationT)
ProcessingStarted Processing has started event.
(Inherited from AsyncProcessingOperationT)

See Also