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.
Namespace:
MFiles.VAF.MultiserverMode
Assembly:
MFiles.VAF (in MFiles.VAF.dll) Version: 2.3.623.2
Syntaxpublic string CreateApplicationTaskSafe(
bool allowRetry,
string taskQueue,
string taskType,
byte[] taskData = null,
DateTime activationTimestamp = null,
int restoreToWaitingTimeoutInMinutes = 1,
Vault vault = null
)
Public Function CreateApplicationTaskSafe (
allowRetry As Boolean,
taskQueue As String,
taskType As String,
Optional taskData As Byte() = Nothing,
Optional activationTimestamp As DateTime = Nothing,
Optional restoreToWaitingTimeoutInMinutes As Integer = 1,
Optional vault As Vault = Nothing
) As String
public:
String^ CreateApplicationTaskSafe(
bool allowRetry,
String^ taskQueue,
String^ taskType,
array<unsigned char>^ taskData = nullptr,
DateTime activationTimestamp = nullptr,
int restoreToWaitingTimeoutInMinutes = 1,
Vault^ vault = nullptr
)
Parameters
- allowRetry
- Type: SystemBoolean
When true, a retry attempt it permitted if the queue is not found. - taskQueue
- Type: SystemString
Task queue id. - taskType
- Type: SystemString
Task type. - taskData (Optional)
- Type: SystemByte
Immutable task data. - activationTimestamp (Optional)
- Type: SystemDateTime
The earliest time the task can be assigned for processing. - restoreToWaitingTimeoutInMinutes (Optional)
- Type: SystemInt32
Number of minutes the task can be in progress without an update before it times out.
- vault (Optional)
- Type: Vault
Optional, vault object to use for the call, defaults to Permanent vault.
Return Value
Type:
StringTask id.
See Also