CallerContextServiceQueueBackgroundTask Method (Action, TimeSpan, CancellationToken)

Runs an action after a specified delay.

Namespace:  Dundas.BI.Services
Assembly:  Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (24.4.0.1000)
Syntax
public Task QueueBackgroundTask(
	Action action,
	TimeSpan delay,
	CancellationToken cancellationToken
)

Parameters

action
Type: SystemAction
The action to run.
delay
Type: SystemTimeSpan
The delay.
cancellationToken
Type: System.ThreadingCancellationToken
The cancellation token.

Return Value

Type: Task
A task object representing the asynchronous operation.

Implements

ICallerContextServiceQueueBackgroundTask(Action, TimeSpan, CancellationToken)
Exceptions
ExceptionCondition
ArgumentNullExceptionaction is .
ArgumentOutOfRangeException

delay represents a negative time interval.

-or-

The delay argument's TotalMilliseconds property is greater than MaxValue.

ObjectDisposedExceptionThe provided cancellationToken has already been disposed.
See Also