Skip to main content
Version: 4.1

Timer

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.1.0.0)

Implements a timer that raises an event at user-defined intervals.

public class Timer : Component

Constructors​

Instance member Timer()​

Initializes a new instance of the Timer class.

Instance member Timer(container)​

Initializes a new instance of the Timer class together with the specified container.

NameTypeDescription
containerIContainerA IContainer that represents the container for the timer.

Properties​

Instance member Enabled​

Boolean: Returns or sets whether the timer is running. (Default: False)

Instance member Interval​

Int32: Returns or sets the time, in milliseconds, before the Tick event is raised relative to the last occurrence of the Tick event. (Default: 1000)

Instance member Tag​

Object: Returns or sets an arbitrary string representing some type of user state. (Default: null)

Methods​

Protected member Dispose(disposing)​

Disposes of the resources, other than memory, used by the timer.

ParameterTypeDescription
disposingBooleantrue when this method is called by the application rather than a finalizer.

Protected member OnTick(e)​

Fires the Tick event.

ParameterTypeDescription
eEventArgsA EventArgs that contains the event data. This is always Empty.

Protected member OnWebEvent(e)​

Processes the event from the client.

ParameterTypeDescription
eWisejEventArgsEvent arguments.

Protected member OnWebRender(config)​

Renders the client component.

ParameterTypeDescription
configObjectDynamic configuration object.

Instance member Restart()​

Resets the timer.

Instance member Start()​

Starts the timer.

Instance member Stop()​

Stops the timer.

Events​

Instance member Tick​

EventHandler Fired when the specified timer interval has elapsed and the timer is enabled.

Implements​

NameDescription
IUserDataProvides access to the UserData and Tag properties associated to the component implementing this interface.
IWisejComponentAll wisej components implement this interface.
IWisejSerializableAllows an object to serialize itself.