enableAssassin
This method of the Service Class enables the assassin.
Syntax
protected void enableAssassin();
The assassin will observe the state of the service and will terminate it in the following cases:
- A control request is received and the service does not respond within the default time-out.
- A call to setServiceStatus changes the state of the service to a state unrelated to a previous state change request. This means that if a stop request is received and the service proceeds to set the state to RUNNING, the service is terminated. However, if the service sets its state to STOPPED or STOP_PENDING, the service will terminate in the first case, or it will re-start its time-out in the second case.
- A setServiceStatus call changes the state of the service to any PENDING state and the service does not make a setServiceStatus call to the corresponding state within the WaitHint (or if WaitHint is not specified), within the assassin's default time-out.
See Also
disableAssassin, isAssassinActive, setAssassinTimeout, STOPPED, START_PENDING, STOP_PENDING, RUNNING, CONTINUE_PENDING, PAUSE_PENDING, PAUSED
© 1999 Microsoft Corporation. All rights reserved. Terms of use.