I am using a thread in my ASP.Net application to be run in the backGround every 2 hours, using C# See code below, but my question is how can I know if this specific thread is still running on the server ?? Note: I am using Windows server 2008 R2 Standard note : but I wanna check i on the server because it is a production server. Windows 8 R2 Standard
// Create runner Thread and start it
System.Threading.Thread OrderStatusFromThread = new System.Threading.Thread(new System.Threading.ThreadStart(OrderStatusChange));
OrderStatusFromThread.IsBackground = true;
OrderStatusFromThread.Name = "OrderStatusFromThread";
OrderStatusFromThread.Start();
}
static void OrderStatusChange()
{
while (!ShutDown)
{
System.Threading.Thread.Sleep((1000 * 60)*10);
UpdateOrderStatusFromAPI();
}
}