When developing Window Service Apps, what is the difference between stop and pause?
Do developers distinguish between the two?
Join Stack Overflow to learn, share knowledge, and build your career.
When a service is paused, it can maintain internal state, including cached information or possibly even a queue of waiting work items. The service can then be resumed to pick up where it left off.
If the service is stopped, internal state is discarded. Starting the service again should repeat all initialization.
Developers do distinguish between the two. The distinction is very important when a service has a non-trivial initialization process.
For more information on `service states' see Introduction to Windows Services