Table of Contents

Interface ITimer

Namespace
Acuit.Pinpoint.Timing
Assembly
Acuit.Pinpoint.Timing.Abstractions.dll

A timer.

public interface ITimer : IDisposable
Inherited Members

Methods

Change(TimeSpan, TimeSpan)

Changes the start time and the interval between method invocations for a timer.

bool Change(TimeSpan dueTime, TimeSpan period)

Parameters

dueTime TimeSpan

The amount of time to delay before the callback parameter invokes its methods. Specify InfiniteTimeSpan to prevent the timer from starting. Specify Zero to start the timer immediately.

period TimeSpan

The time interval between invocations of the methods referenced by callback. Specify InfiniteTimeSpan to disable periodic signaling.

Returns

bool

true if the timer was successfully updated; otherwise, false.

Exceptions

ObjectDisposedException

The timer has already been disposed.

ArgumentOutOfRangeException

The dueTime or period parameter, in milliseconds, is less than -1.

NotSupportedException

The dueTime or period parameter, in milliseconds, is greater than 4294967294.