Click or drag to resize
ITimer Interface
The interface for objects that periodically raise an event.

Namespace: VirtualRadar.Interface
Assembly: VirtualRadar.Interface (in VirtualRadar.Interface.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public interface ITimer : IDisposable

The ITimer type exposes the following members.

Properties
  NameDescription
Public propertyAutoReset
Gets or sets a value indicating whether the Elapsed event should be raised every time the interval elapses (true) or only once (false).
Public propertyEnabled
Gets or sets a value indicating that the Elapsed event should be periodically raised.
Public propertyInterval
Gets or sets the interval at which to raise the Elapsed event.
Top
Methods
  NameDescription
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from IDisposable.)
Public methodStart
Starts the timer.
Public methodStop
Stops the timer.
Top
Events
  NameDescription
Public eventElapsed
Raised when the interval elapses.
Top
Remarks
This is just wrapping a standard System.Timers timer. It exists so that objects that rely on timers can be unit tested.
See Also