Calling all developers! We invite you to provide your input on Feature Experimentation by completing this brief survey.

 

Interface ITimer

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

Inherited Members
System.IDisposable.Dispose()
Namespace: EPiServer.Framework.Timers
Assembly: EPiServer.Framework.dll
Version: 7.19.2
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