EventTimer Class

A timer event that occurs on a specific interval at a specific offset. This class is thread safe.

Definition

Namespace: SnapDB.Threading
Assembly: SnapDB (in SnapDB.dll) Version: 1.0.102.0 -- Release Build+29075351d0e5aa4dea46a5c520805222f672dc2e
Inheritance
Object    DisposableLoggingClassBase    EventTimer

Properties

Enabled Gets or sets a value indicating whether the timer is enabled.
Log The LogPublisher for logging messages.
(Inherited from DisposableLoggingClassBase)
TimeUntilNextExecution Gets the time remaining until the next execution of the timer.

Methods

CheckDisposed Checks if the class has been disposed, throws an exception if this is the case.
(Inherited from DisposableLoggingClassBase)
Create Creates a new instance of the EventTimer class with the specified period and day offset.
CreateMinutes Creates a new instance of the EventTimer class with the specified period and day offset in minutes.
CreateSeconds Creates a new instance of the EventTimer class with the specified period and day offset in seconds.
Dispose Releases all the resources used by the DisposableLoggingClassBase object.
(Inherited from DisposableLoggingClassBase)
Dispose(Boolean) Releases the resources used by the event timer and stops it.
(Overrides Dispose(Boolean))
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Finalize This code is here to detect when finalizers are called rather than a class be properly disposed.
(Inherited from DisposableLoggingClassBase)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Start Starts the event timer.
Stop Stops the event timer.
ToStringReturns a string that represents the current object.
(Inherited from Object)

Events

Elapsed Occurs when the timer elapses. Event occurs on the ThreadPool

See Also