Click or drag to resize

TimerQueue Class

Queue that allows to trigger actions at specific times. This class is thread safe. When enqueuing items, you will get back a token, which can be used to question or change the item on the queue.
Inheritance Hierarchy
SystemObject
  AltaxoDisposableBase
    Altaxo.Main.ServicesTimerQueue

Namespace: Altaxo.Main.Services
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public class TimerQueue : DisposableBase, ITimerQueue

The TimerQueue type exposes the following members.

Constructors
 NameDescription
Public methodTimerQueue Initializes a new instance of the TimerQueue class. This constructur needs the IHighResolutionClock service to be present.
Public methodTimerQueue(IHighResolutionClock) Initializes a new instance of the TimerQueue class.
Top
Properties
 NameDescription
Public propertyCurrentTime Gets the time that is elapsed during this timer is running.
Top
Methods
 NameDescription
Public methodAddOrUpdate 
Public methodContains Determines whether the item identified by the token is still in the queue.
Public methodDispose Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from DisposableBase)
Protected methodDispose(Boolean)Releases the unmanaged resources used by the TimerQueue and optionally releases the managed resources
(Overrides DisposableBaseDispose(Boolean))
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalize Finalizes an instance of the DisposableBase class.
(Inherited from DisposableBase)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Public methodTryAdd Enqueues an item in the timer queue.
Public methodTryRemove(Object) Tries the remove an item identified by a token from the queue.
Public methodTryRemove(Object, TimeSpan) Tries the remove an item identified by a token from the queue.
Public methodTryUpdateTime Tries to change the due time of an item already in the queue.
Top
See Also