470,833 Members | 1,361 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,833 developers. It's quick & easy.

restarting .net service

Hi,

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

Thanks,

Peter
Jun 5 '06 #1
1 1391
Peter Schmitz wrote:
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
Jun 5 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Jerry Boone | last post: by
1 post views Thread by Scott Lezberg | last post: by
4 posts views Thread by =?Utf-8?B?TWFyaw==?= | last post: by
reply views Thread by mihailmihai484 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.