P
Peter Larsen [CPH]
Hi,
What is the normal way to stop a servie from within the servie itself ??
BR
Peter
What is the normal way to stop a servie from within the servie itself ??
BR
Peter
Peter said:Hi,
What is the normal way to stop a servie from within the servie itself ??
What is the normal way to stop a servie from within the servie itself ??
Thanks for your comments.
I know about ServiceBase.Stop(), but what is best practice ?
What is if i want to stop with error (Environment.Exit() or throw an
exception) ?
Both ways, the service stops immediately without any cleanups (no go i
would say).