how to stop a serivice

  • Thread starter Thread starter Analizer1
  • Start date Start date
A

Analizer1

hi
How can i Stop a Service from within the service
for instance....
A Error Occures before the Service gets the business logic part started....
this error is caught in a Try/Catch block
What is the Call to Stop the Service

Thanks
 
Analizer1 said:
How can i Stop a Service from within the service
for instance....
A Error Occures before the Service gets the business logic part
started....
this error is caught in a Try/Catch block
What is the Call to Stop the Service

The ServiceBase class from which your service should be inheriting has a
Stop() method. Note: This is new in Framework 2.0.
 
Thanks for your response

Alberto Poblacion said:
The ServiceBase class from which your service should be inheriting has
a Stop() method. Note: This is new in Framework 2.0.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top