Class SystemTimer

Wrapper around the System.Timers.Timer that implements the ITimer interface.

Inheritance
System.Object
SystemTimer
Implements
System.IDisposable
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Framework.Timers
Assembly: EPiServer.Framework.dll
Version: 8.11.0
Syntax
[ServiceConfiguration(typeof(ITimer))]
public sealed class SystemTimer : ITimer, IDisposable

Constructors

SystemTimer()

Initializes a new instance of the SystemTimer class.

Declaration
public SystemTimer()

SystemTimer(Double)

Initializes a new instance of the SystemTimer class with the Interval set to the provided number of milliseconds.

Declaration
public SystemTimer(double interval)
Parameters
Type Name Description
System.Double interval

The initial interval in milliseconds to use.

Properties

AutoReset

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

Enabled

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

Interval

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

Methods

Dispose()

Declaration
public void Dispose()

Events

Elapsed

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

Implements

System.IDisposable