Click or drag to resize

GatedTimer Class

Implements a timer that allows only one thread at a time to process timer events.
Inheritance Hierarchy
SystemObject
  Neon.TimeGatedTimer

Namespace:  Neon.Time
Assembly:  Neon.Common (in Neon.Common.dll) Version: 2.1.0
Syntax
public class GatedTimer : IDisposable

The GatedTimer type exposes the following members.

Constructors
  NameDescription
Public methodGatedTimer(TimerCallback, Object, TimeSpan)
Initializes and starts the timer.
Public methodGatedTimer(TimerCallback, Object, TimeSpan, TimeSpan)
Initializes and starts the timer.
Top
Methods
  NameDescription
Public methodChange
Modifies the timer.
Public methodDispose
Releases all resources associated with the timer.
Protected methodDispose(Boolean)
Releases any important resources associated with the instance.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Finalizer.
(Overrides ObjectFinalize.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Remarks

This is necessary to because the Timer class will continue firing thread handlers even if a long-running thread is still handling an earlier timer event.

See Also