Click or drag to resize

TaskQueueManager Class

Application Task Queue Manager. Manages task assignment and processing via the VaultApplicationTaskOperations interface.
Inheritance Hierarchy

Namespace:  MFiles.VAF.Common.ApplicationTaskQueue
Assembly:  MFiles.VAF (in MFiles.VAF.dll) Version: (
public class TaskQueueManager : IDisposable

The TaskQueueManager type exposes the following members.

Public methodTaskQueueManager
Self initializing task queue manager constructor.
Protected propertyManagerTokenSource
Cancellation token source for the manager itself. - Requesting a cancellation will cause all queues and all their respective tasks to be cancelled as well.
Protected propertyPersistentVault
Persistent Vault object.
Public propertyPollingEnabled
Holds the enabled value of the polling timer.
Protected propertyPollingIntervalInSeconds
The current and active polling interval in seconds.
Public methodAddScheduledTask
En-queues the scheduled task into the Multi-Server Mode, AsyncTaskQueue.
Public methodAddTask
En-queues the task into the Multi-Server Mode, AsyncTaskQueue.
Public methodDetachTaskQueue
Detaches a task queue wrapper from task delegation by this task queue manager instance. - Does not modify the task queue in the server. - Un-registers the TaskQueue object and its associated handlers inside the task queue manager.
Public methodDispose
IDisposable implementation.
Public methodEnableTaskPolling
Enables or disables the task queue polling. By default the polling is enabled and starts when the first queue gets opened.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Protected methodGetBroadcastTasks
Resolves a collection of broadcast messages, wrapped as a List{ApplicationTask}.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetLatestBroadcastMessageIdentifier
Resolves the latest broadcast id for the passed queue identifier.
Public methodGetLatestBroadcastMessageIdentifiers
Resolves the latest broadcast ids for the passed queue identifiers.
Protected methodGetNewBroadcastMessages
Gets new broadcast messages from the server.
Protected methodGetTaskInfoTasks
Resolves a collection of application task info's, wrapped as a List{ApplicationTask}.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodOnPollingTimeElapsed
Polling timer handler.
Public methodOpenTaskQueue
Registers a task queue wrapper and opens the task queue in the server. - Opens the task queue in the server. - Registers the TaskQueue object and its associated handlers inside the task queue manager.
Protected methodPollTasks
Polls the server and reserves tasks for processing as well as gets new broadcast messages.
Protected methodReserveTasksForProcessing
Reserve tasks for processing from the server.
Public methodSendBroadcastMessage
Sends a broadcast message to the passed task queue.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodUpdateTask
Updates the state and progress values for a task in the server.
Public fieldStatic memberDefaultPollingInterval
Default polling interval in seconds.
Protected fieldtaskQueues
The task queues being managed by this class.
See Also