Class TimerServiceExtensions
Provides extended methods for ITimerService.
public static class TimerServiceExtensions
- Inheritance
-
TimerServiceExtensions
- Inherited Members
Methods
Start(ITimerService, object, MethodInfo, TimeSpan)
Starts a timer with the specified interval. The specified method will be invoked on the specified
target each timer tick.
public static TimerReference Start(this ITimerService timerService, object target, MethodInfo method, TimeSpan interval)
Parameters
timerServiceITimerServiceThe timer service.
targetobjectThe target on which to tick.
methodMethodInfoThe method to invoke each timer tick.
intervalTimeSpanThe interval at which to tick.
Returns
- TimerReference
A reference to the started timer.