CallerContextServiceQueueBackgroundTask Method |
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 (9.0.0.1000)
Syntaxpublic Task QueueBackgroundTask(
Action action,
TimeSpan delay,
CancellationToken cancellationToken
)
Public Function QueueBackgroundTask (
action As Action,
delay As TimeSpan,
cancellationToken As CancellationToken
) As Task
public:
virtual Task^ QueueBackgroundTask(
Action^ action,
TimeSpan delay,
CancellationToken cancellationToken
) sealed
abstract QueueBackgroundTask :
action : Action *
delay : TimeSpan *
cancellationToken : CancellationToken -> Task
override QueueBackgroundTask :
action : Action *
delay : TimeSpan *
cancellationToken : CancellationToken -> Task Parameters
- action
- Type: SystemAction
The action to run. - delay
- Type: SystemTimeSpan
The delay. - cancellationToken
- Type: System.ThreadingCancellationToken
The cancellation token.
Return Value
Type:
TaskA task object representing the asynchronous operation.
Implements
ICallerContextServiceQueueBackgroundTask(Action, TimeSpan, CancellationToken)
Exceptions| Exception | Condition |
|---|
| ArgumentNullException | action is . |
| ArgumentOutOfRangeException | delay represents a negative time interval. -or- The delay argument's TotalMilliseconds property is greater than MaxValue. |
| ObjectDisposedException | The provided cancellationToken has already been disposed. |
See Also