TaskProcessorBaseTSettingsCreateApplicationTaskSafe Method

Helper method used to create a task in the task queue, accounting for the potential that the task queue has been destroyed. - If the task queue is not found, the RegisterTaskQueue() method is called, then the create task is attempted a 2nd time.

Definition

Namespace: MFiles.VAF.MultiserverMode
Assembly: MFiles.VAF (in MFiles.VAF.dll) Version: 24.1.706.1
C#
public string CreateApplicationTaskSafe(
	bool allowRetry,
	string taskQueue,
	string taskType,
	byte[] taskData = null,
	DateTime activationTimestamp = default,
	int restoreToWaitingTimeoutInMinutes = 1,
	Vault vault = null
)

Parameters

allowRetry  Boolean
When true, a retry attempt it permitted if the queue is not found.
taskQueue  String
Task queue id.
taskType  String
Task type.
taskData  Byte  (Optional)
Immutable task data.
activationTimestamp  DateTime  (Optional)
The earliest time the task can be assigned for processing.
restoreToWaitingTimeoutInMinutes  Int32  (Optional)
Number of minutes the task can be in progress without an update before it times out.
vault  Vault  (Optional)
Optional, vault object to use for the call, defaults to Permanent vault.

Return Value

String
Task id.

See Also