17 writes to currentState
System.ServiceProcess.ServiceController (17)
System\ServiceProcess\ServiceBase.cs (17)
401
_status.
currentState
= ServiceControlStatus.STATE_RUNNING;
405
_status.
currentState
= ServiceControlStatus.STATE_PAUSED;
444
_status.
currentState
= ServiceControlStatus.STATE_PAUSED;
448
_status.
currentState
= ServiceControlStatus.STATE_RUNNING;
516
_status.
currentState
= ServiceControlStatus.STATE_STOP_PENDING;
522
_status.
currentState
= ServiceControlStatus.STATE_STOPPED;
527
_status.
currentState
= previousState;
552
_status.
currentState
= ServiceControlStatus.STATE_STOPPED;
681
_status.
currentState
= ServiceControlStatus.STATE_START_PENDING;
760
_status.
currentState
= ServiceControlStatus.STATE_CONTINUE_PENDING;
771
_status.
currentState
= ServiceControlStatus.STATE_PAUSE_PENDING;
789
_status.
currentState
= ServiceControlStatus.STATE_STOP_PENDING;
793
_status.
currentState
= previousState;
830
_status.
currentState
= ServiceControlStatus.STATE_RUNNING;
835
_status.
currentState
= ServiceControlStatus.STATE_STOPPED;
902
_status.
currentState
= ServiceControlStatus.STATE_START_PENDING;
941
_status.
currentState
= ServiceControlStatus.STATE_STOPPED;
19 references to currentState
System.ServiceProcess.ServiceController (19)
System\ServiceProcess\ServiceBase.cs (18)
62
if (_status.
currentState
!= ServiceControlStatus.STATE_CONTINUE_PENDING &&
63
_status.
currentState
!= ServiceControlStatus.STATE_START_PENDING &&
64
_status.
currentState
!= ServiceControlStatus.STATE_STOP_PENDING &&
65
_status.
currentState
!= ServiceControlStatus.STATE_PAUSE_PENDING)
508
if (_status.
currentState
!= ServiceControlStatus.STATE_STOPPED)
512
int previousState = _status.
currentState
;
546
if (_status.
currentState
== ServiceControlStatus.STATE_PAUSED || _status.
currentState
== ServiceControlStatus.STATE_RUNNING)
750
else if (_status.
currentState
!= ServiceControlStatus.STATE_CONTINUE_PENDING &&
751
_status.
currentState
!= ServiceControlStatus.STATE_START_PENDING &&
752
_status.
currentState
!= ServiceControlStatus.STATE_STOP_PENDING &&
753
_status.
currentState
!= ServiceControlStatus.STATE_PAUSE_PENDING)
758
if (_status.
currentState
== ServiceControlStatus.STATE_PAUSED)
769
if (_status.
currentState
== ServiceControlStatus.STATE_RUNNING)
780
int previousState = _status.
currentState
;
787
if (_status.
currentState
== ServiceControlStatus.STATE_PAUSED || _status.
currentState
== ServiceControlStatus.STATE_RUNNING)
939
if (_status.
currentState
!= ServiceControlStatus.STATE_STOPPED)
System\ServiceProcess\ServiceController.cs (1)
505
_status = (ServiceControllerStatus)svcStatus.
currentState
;