ICallerContextServiceQueueBackgroundTaskT Method (FuncT, TimeSpan, CancellationToken) | 
 Runs an action after a specified delay.
 
    Namespace: 
   Dundas.BI
    Assembly:
   Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (25.3.0.1000)
SyntaxTask<T> QueueBackgroundTask<T>(
	Func<T> func,
	TimeSpan delay,
	CancellationToken cancellationToken
)
Function QueueBackgroundTask(Of T) ( 
	func As Func(Of T),
	delay As TimeSpan,
	cancellationToken As CancellationToken
) As Task(Of T)
generic<typename T>
Task<T>^ QueueBackgroundTask(
	Func<T>^ func, 
	TimeSpan delay, 
	CancellationToken cancellationToken
)
abstract QueueBackgroundTask : 
        func : Func<'T> * 
        delay : TimeSpan * 
        cancellationToken : CancellationToken -> Task<'T> 
Parameters
- func
 - Type: SystemFuncT
The delegate to run. - delay
 - Type: SystemTimeSpan
The delay. - cancellationToken
 - Type: System.ThreadingCancellationToken
The cancellation token. 
Type Parameters
- T
 - The type of object returned by the task.
 
Return Value
Type: 
TaskTA task object representing the asynchronous operation.
Exceptions
See Also