ICallerContextServiceSpawnTaskTResult Method

Creates an asynchronous task which inherits the properties of the current caller context.

Namespace:  Dundas.BI
Assembly:  Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (24.3.0.1000)
Syntax
Task<TResult> SpawnTask<TResult>(
	string name,
	Func<TResult> func,
	GroupCancellationToken cancellationToken
)

Parameters

name
Type: SystemString
A name which will be assigned to the spawned operation (used for diagnostic purposes).
func
Type: SystemFuncTResult
The function to invoke asynchronously.
cancellationToken
Type: Dundas.BI.Data.DataRetrievalGroupCancellationToken
The cancellation token.

Type Parameters

TResult
The type of object returned by the task.

Return Value

Type: TaskTResult
A task object representing the asynchronous operation.
Exceptions
ExceptionCondition
ArgumentNullExceptionfunc is .
See Also