A Sandcastle Documented Class Library

# ICallerContextService QueueBackgroundTask Method

Runs an action after a specified delay.

Namespace: Dundas.BI
Assembly: Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (10.0.0.1002)
Syntax
C#
VB
C++
F#
Copy

    Task QueueBackgroundTask(
    	Action action,
    	TimeSpan delay,
    	CancellationToken cancellationToken
    )

    Function QueueBackgroundTask (
    	action As Action,
    	delay As TimeSpan,
    	cancellationToken As CancellationToken
    ) As Task

    Task^ QueueBackgroundTask(
    	Action^ action,
    	TimeSpan delay,
    	CancellationToken cancellationToken
    )

    abstract QueueBackgroundTask :
            action : Action *
            delay : TimeSpan *
            cancellationToken : CancellationToken -> Task

#### Parameters

action
  Type: System
  Action
  The action to run.
delay
  Type: System
  TimeSpan
  The delay.
cancellationToken
  Type: System.Threading
  CancellationToken
  The cancellation token.

#### Return Value

Type: Task
A task object representing the asynchronous operation.
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

#### Reference

ICallerContextService Interface
Dundas.BI Namespace