M
marccruz
Hi,
I am writing a Windows Service in C#. I want to gracefully fail the
"protected override void OnStop()" function. To do this, I first tried
throwing an Exception in the function. However, that left the Service
in a "Stopping" state.
I would like to fail the Service in the OnStop function without putting
the service in the Stopping state. It would be nice if it's still in
the Started state. Is this possible? If so, how?
Thanks
I am writing a Windows Service in C#. I want to gracefully fail the
"protected override void OnStop()" function. To do this, I first tried
throwing an Exception in the function. However, that left the Service
in a "Stopping" state.
I would like to fail the Service in the OnStop function without putting
the service in the Stopping state. It would be nice if it's still in
the Started state. Is this possible? If so, how?
Thanks