Click or drag to resize

ParallelWorkBroker.QueueWork<T> Method (Func<T>, DispatchQueueType, CancellationToken, TaskCreationOptions)

Queues the work specified in the form of the func workToQueueFunc, on the queue specified.

Namespace:  SD.LLBLGen.Pro.ApplicationCore.Parallelization
Assembly:  SD.LLBLGen.Pro.ApplicationCore (in SD.LLBLGen.Pro.ApplicationCore.dll) Version: 5.8.0.0 (5.8.21.0208)
Syntax
public Task<T> QueueWork<T>(
	Func<T> workToQueueFunc,
	DispatchQueueType queueToUse,
	CancellationToken cancellationToken,
	TaskCreationOptions options
)

Parameters

workToQueueFunc
Type: System.Func<T>
The work.
queueToUse
Type: SD.LLBLGen.Pro.ApplicationCore.DispatchQueueType
The queue to use.
cancellationToken
Type: System.Threading.CancellationToken
The cancellation token.
options
Type: System.Threading.Tasks.TaskCreationOptions
The task creation options for the task to be created by this method.

Type Parameters

T
The type of the result of the work queue func and the continuation func

Return Value

Type: Task<T>
The task created which is dispatched on the queue specified
Exceptions
ExceptionCondition
ArgumentException
See Also