restarting .net service

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I'm currently writing a VB .net windows service. How can I restart myself
(this service) out of my own code?

Thanks,

Peter
 
Peter said:
Hi,

I'm currently writing a VB .net windows service. How can I restart myself
(this service) out of my own code?

Thanks,

Peter

Peter,

Does your service class (which extends ServiceBase) have
OnStart(string[] args) and OnStop() methods? If so, you should be able
to call OnStop and then OnStart.

Hope this helps.

Dan Manges
 
Back
Top