Elapsed , , , .
This is primarily intended for Windows Forms applications, where System.Windows.Forms.Control(and all derived types, such as Form) implement an interface ISynchronizeInvokeand can be easily tied to a timer to synchronize execution. In the Windows Service environment, you will have to program an implementation of a stub for this interface, which performs the necessary synchronization of threads, since the service itself does not provide such an implementation.
source
share