ParallelWorkBrokerQueueWork Method (Action, DispatchQueueType, CancellationToken, TaskCreationOptions) |
Queues the work specified in the form of the func workToQueueFunc, on the queue specified.
Namespace: SD.LLBLGen.Pro.ApplicationCore.ParallelizationAssembly: SD.LLBLGen.Pro.ApplicationCore (in SD.LLBLGen.Pro.ApplicationCore.dll) Version: 5.0.0.0 (5.0.0)
Syntax public Task QueueWork(
Action workToQueueFunc,
DispatchQueueType queueToUse,
CancellationToken cancellationToken,
TaskCreationOptions options
)
Public Function QueueWork (
workToQueueFunc As Action,
queueToUse As DispatchQueueType,
cancellationToken As CancellationToken,
options As TaskCreationOptions
) As Task
Parameters
- workToQueueFunc
- Type: SystemAction
The work. - queueToUse
- Type: SD.LLBLGen.Pro.ApplicationCoreDispatchQueueType
The queue to use. - cancellationToken
- Type: System.ThreadingCancellationToken
The cancellation token. - options
- Type: System.Threading.TasksTaskCreationOptions
The task creation options for the task to be created by this method.
Return Value
Type:
Task
The task created which is dispatched on the queue specified
Exceptions See Also