TaskQueueManagerOpenTaskQueue Method

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.

Definition

Namespace: MFiles.VAF.Common.ApplicationTaskQueue
Assembly: MFiles.VAF (in MFiles.VAF.dll) Version: 24.1.706.1
C#
public void OpenTaskQueue(
	string queueName,
	MFTaskQueueProcessingBehavior processingBehavior,
	TaskQueueManagerTaskType taskType,
	IApplicationTaskProcessor taskProcessor,
	int maximumPollingIntervalInSeconds = 30,
	string lastBroadcastId = "",
	bool throwIfAlreadyExists = false
)

Parameters

queueName  String
Task queue name / identifier.
processingBehavior  MFTaskQueueProcessingBehavior
Processing behavior type.
taskType  TaskQueueManagerTaskType
Defines the type of tasks that can be processed by this task queue.
taskProcessor  IApplicationTaskProcessor
Task processor for this queue.
maximumPollingIntervalInSeconds  Int32  (Optional)
The max time in seconds that can pass before a polling cycle is ran for this queue.
lastBroadcastId  String  (Optional)
The last processed broadcast id, defaults to empty string.
throwIfAlreadyExists  Boolean  (Optional)
When true, the already exists error will be thrown if the task queue is already open.

See Also