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