protected override void OnStop() { if (pmaTaskHandler != null) { pmaTaskHandler.ReportingTask(); } is_lock = false; }
//----------------------------------------------------------------------------------------------------------------------- /// <summary> /// When implemented in a derived class, executes when a Stop command is sent to the service by the Service Control Manager (SCM). Specifies actions to take when a service stops running. /// </summary> protected override void OnStop() { if (flowController != null) { //flowController.; } if (pmaTaskHandler != null) { pmaTaskHandler.ReportingTask(); } if (serviceHost != null) { serviceHost.Close(); serviceHost = null; } is_lock = false; }