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
)
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 See Also