private void DoWork()
 {
     while (!_shutdownEvent.WaitOne(1000)) // 1 second
     {
         DoSomeStuffStaticClass.PrintHelloWorld();
     }
 }
Esempio n. 2
0
 private void DoWork()
 {
     while (!_shutdownEvent.WaitOne(1000)) // 1 second
     {
         Console.WriteLine("Start parameter: {0}", _msg);
         DoSomeStuffStaticClass.PrintHelloWorld();
     }
 }