Persistate API documentation
CallPeriodic<(Of <(<'T>)>)> Method (work, parameter, initialDelay, subsequentDelay)
NamespacesPersistateSessionCallPeriodic<(Of <<'(T>)>>)(Work<(Of <<'(T>)>>), T, Int32, Int32)

[This is preliminary documentation and is subject to change.]

Executes a one parameter method at regular intervals on a ThreadPool thread.
Declaration Syntax
C#
public Timer CallPeriodic<T>(
	Work<T> work,
	T parameter,
	int initialDelay,
	int subsequentDelay
)
Generic Template Parameters
T
The type of the parameter to pass to the method.
Parameters
work (Work<(Of <(<'T>)>)>)
A delegate which will be executed on the thread.
parameter (T)
The parameter to pass to the method.
initialDelay (Int32)
The number of milliseconds until the first execution of the method. Specify zero to execute the method immediately.
subsequentDelay (Int32)
The number of milliseconds between subsequent executions. Specify Timeout.Infinite to disable subsequent executions.
Return Value
The System.Threading.Timer object used to control the executions.
Remarks
This method ensures that ActiveSession is set correctly to this session on the new thread. Use this in preference to using Timer classes directly.

Assembly: Persistate (Module: Persistate) Version: 0.6.1.20 (0.6.1.20)