T
Tony Johansson
Hi!
Here is some text from e-learning about windows services.
"If you want to pause and restart the Windows service application, you must
set the CanPauseAndContinue property to True. If this property is set to
True, you should override the OnPause and OnContinue methods.
However, if the OnPause method releases all the resources in the OnStart
method, it functions as the OnStop method. You can pause only a portion of
the work that the service perform while the service perform the remaining
activities normally."
Now to my question what in meant by the last row when it says
"You can pause only a portion of the work that the service perform while the
service perform the remaining activities normally."
I mean that if you for example use a timer in the OnStart where you set the
Enable proprty to true you might set the Enable proprty to false in the
OnPause and then in the OnContinue set the Enable property to true again.
This is how I understand how OnPause would work.
//Tony
Here is some text from e-learning about windows services.
"If you want to pause and restart the Windows service application, you must
set the CanPauseAndContinue property to True. If this property is set to
True, you should override the OnPause and OnContinue methods.
However, if the OnPause method releases all the resources in the OnStart
method, it functions as the OnStop method. You can pause only a portion of
the work that the service perform while the service perform the remaining
activities normally."
Now to my question what in meant by the last row when it says
"You can pause only a portion of the work that the service perform while the
service perform the remaining activities normally."
I mean that if you for example use a timer in the OnStart where you set the
Enable proprty to true you might set the Enable proprty to false in the
OnPause and then in the OnContinue set the Enable property to true again.
This is how I understand how OnPause would work.
//Tony