hello,
I have a c# windows service that is working fine but I don't fully understand how the threading works. A new MTAThread is created and started. The method it is assigned to runs a couple of queries and at the end it calls Thread.Sleep (10000). At the end of this wait period the process repeats.
But, I don't understand what makes it go back to the beginning of the method and start over. There isn't any reset or any other call to make this happen.
Here is a snippet of the method:
What could make this routine repeat itself?
thanks,
steve
I have a c# windows service that is working fine but I don't fully understand how the threading works. A new MTAThread is created and started. The method it is assigned to runs a couple of queries and at the end it calls Thread.Sleep (10000). At the end of this wait period the process repeats.
But, I don't understand what makes it go back to the beginning of the method and start over. There isn't any reset or any other call to make this happen.
Here is a snippet of the method:
Code:
private void updateTags()
{
//DB work done here...
Thread.Sleep(10000)
}
thanks,
steve
Comment