protected override void OnStart(string[] args)
{
while (true)
{
// do some work
// idle
Thread.Sleep(0, interval, 0)
}
}
I am unable to use timer/thread for my service, because my third party dll is not working, so I have tried the while condition in OnStart it throws error. How will i achieve the endless loop without timer/thread.