Click or drag to resize

TimerQueueTryAdd Method

Enqueues an item in the timer queue.

Namespace: Altaxo.Main.Services
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntax
C#
public bool TryAdd(
	Object token,
	TimeSpan time,
	Action<Object, TimeSpan> action
)

Parameters

token  Object
The token identifying the queued item.
time  TimeSpan
The time when to trigger the action.
action  ActionObject, TimeSpan
The action. Can be a single or a multicast delegate. First argument is the token for the timer queue, second argument is the due time.

Return Value

Boolean
true if the item was added; otherwise, false.

Implements

ITimerQueueTryAdd(Object, TimeSpan, ActionObject, TimeSpan)
See Also