Exemple #1
0
 protected override void OnStop()
 {
     if (pmaTaskHandler != null)
     {
         pmaTaskHandler.ReportingTask();
     }
     is_lock = false;
 }
Exemple #2
0
 //-----------------------------------------------------------------------------------------------------------------------
 /// <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;
 }