D
Dave Wright
Hi,
I am implementing a service that connects to an SMS Controller. We are
implementing this using an assembly in the OnStart() method of a Windows
service. This is working fine, however I cannot work out how to get the
service to stop if we cannot connect to the SMSC, if it is down or incorrect
credentials etc. Currently I am using a ServiceController class which I am
calling the stop method of, but this seems to hang and then eventually stop
the service after the timeout.
Is there any way to abort the OnStart method?
Cheers
Dave Wright
Microsoft Solutions Engineer
3
I am implementing a service that connects to an SMS Controller. We are
implementing this using an assembly in the OnStart() method of a Windows
service. This is working fine, however I cannot work out how to get the
service to stop if we cannot connect to the SMSC, if it is down or incorrect
credentials etc. Currently I am using a ServiceController class which I am
calling the stop method of, but this seems to hang and then eventually stop
the service after the timeout.
Is there any way to abort the OnStart method?
Cheers
Dave Wright
Microsoft Solutions Engineer
3