OnStop VS OnShutdown in Service

T

TDC

At system start I get the OnStart. When the system shuts down, do I
*just* get an OnShutdown, or will I get both and OnStop and an
OnShutdown?

If you only get the OnShutdown, I find it odd that the MSDN states the
typical implementation is to override the OnStart and OnStop. Such a
statement makes me assume that the OnStop IS called at shutdown.

Anyone have experience in this area?
Tom
 

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

Top