ParallelWorkBroker.QueueWork Method (Action, DispatchQueueType, CancellationToken, Action<Task>) |
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)
Syntaxpublic Task QueueWork(
Action workToQueueFunc,
DispatchQueueType queueToUse,
CancellationToken cancellationToken,
Action<Task> continuationFunc
)
Public Function QueueWork (
workToQueueFunc As Action,
queueToUse As DispatchQueueType,
cancellationToken As CancellationToken,
continuationFunc As Action(Of Task)
) As Task
Parameters
- workToQueueFunc
- Type: System.Action
The work. - queueToUse
- Type: SD.LLBLGen.Pro.ApplicationCore.DispatchQueueType
The queue to use. - cancellationToken
- Type: System.Threading.CancellationToken
The cancellation token. - continuationFunc
- Type: System.Action<Task>
The continuation function to pass to ContinueWith on the created task if not null. If null, no continuation is created.
Return Value
Type:
Task
The task created which is dispatched on the queue specified
See Also