SaaS CMS has officially launched! Learn more now.

Interface ITimer

Interface that redefines the System.Timers.Timer class core functionality.

Namespace: EPiServer.Framework.Timers
Assembly: EPiServer.Framework.dll
Version: 12.0.3
Syntax
public interface ITimer : IDisposable

Properties

AutoReset

Gets or sets a value indicating whether the timer should start a new interval after the first interval has completed.

Declaration
bool AutoReset { get; set; }
Property Value
Type Description
System.Boolean

true if the timer should reset automatically and start a new interval; otherwise, false.

Enabled

Gets or sets a value indicating whether this ITimer is enabled and should raise the Elapsed event at the end of the currently set interval.

Declaration
bool Enabled { get; set; }
Property Value
Type Description
System.Boolean

true if enabled; otherwise, false.

Interval

Gets or sets the interval in milliseconds at which this ITimer should raise the Elapsed event.

Declaration
double Interval { get; set; }
Property Value
Type Description
System.Double

The interval in milliseconds.

Events

Elapsed

Occurs when the timer interval has elapsed.

Declaration
event EventHandler<ElapsedEventArgs> Elapsed
Event Type
Type Description
System.EventHandler<ElapsedEventArgs>

Extension Methods