G
Guest
I have a ASP.NET webservice and it is configured to run in a web garden with
multiple processes.
Whan a process in the garden is launched, I want the process to create a
background thread. When request are received by this instance of the garden
process, a meessage is posted to the background thread to do its work. When
the garden process is being down by IIS (due to a period of inactivity), I
want to notify the background thread to gracefully terminate.
I create and launch the background thread when a method is the webservice is
first invoked. How do I intercept the shutdown event for the garden process
to terminate the background thread?
According to MSDN documentation, Application_End is not the place to do it
because it is called when the ASP.NET application is shutdown and not
instances of the garden process.
Thanks.
multiple processes.
Whan a process in the garden is launched, I want the process to create a
background thread. When request are received by this instance of the garden
process, a meessage is posted to the background thread to do its work. When
the garden process is being down by IIS (due to a period of inactivity), I
want to notify the background thread to gracefully terminate.
I create and launch the background thread when a method is the webservice is
first invoked. How do I intercept the shutdown event for the garden process
to terminate the background thread?
According to MSDN documentation, Application_End is not the place to do it
because it is called when the ASP.NET application is shutdown and not
instances of the garden process.
Thanks.