示例#1
0
        public override void Stop()
        {
            logger.Log("AppDigitalMedia clean up");
            if (worker != null)
            {
                worker.Abort();
            }

            if (datastream != null)
            {
                datastream.Close();
            }

            if (serviceHost != null)
            {
                serviceHost.Close();
            }

            if (appServer != null)
            {
                appServer.Dispose();
            }

            if (SignalR != null)
            {
                SignalR.Dispose();
            }
        }
示例#2
0
 public override void Stop()
 {
     if (worker != null)
     {
         worker.Abort();
     }
 }
示例#3
0
 public override void Stop()
 {
     logger.Log("Stop() at {0}", ToString());
     if (workThread != null)
     {
         workThread.Abort();
     }
 }
示例#4
0
 /// <summary>
 /// Stops the main thread and shuts down the web service
 /// </summary>
 public override void Stop()
 {
     logger.Log("MentalHouse clean up");
     if (worker != null)
     {
         worker.Abort();
     }
 }
示例#5
0
 public override void Stop()
 {
     if (worker != null)
     {
         worker.Abort();
     }
     //     throw new Exception("Stopping not implemented for " + this);
 }
示例#6
0
 public override void Stop()
 {
     logger.Log("AppDoorjamb clean up");
     if (worker != null)
     {
         worker.Abort();
     }
     //datastream.Close();
 }
        public override void Stop()
        {
            if (worker != null)
            {
                worker.Abort();
            }
            logger.Log("Kinect Sensor Stopped.");

            StopKinect();
        }
 public override void Stop()
 {
     logger.Log("Stop() at {0}", ToString());
     if (connectionChecker != null && connectionChecker.IsAlive())
     {
         connectionChecker.Abort();
         connectionChecker.Join();
     }
     serialPort.Close();
     Finished();
 }
示例#9
0
        public override void Stop()
        {
            logger.Log("Stop() at {0}", ToString());
            crestronConnection.Disconnect();

            if (workThread != null)
            {
                workThread.Abort();
            }
            imageServer.Dispose();
        }
 public override void Stop()
 {
     logger.Log("AppAirConditionCtrl clean up");
     if (worker != null)
     {
         worker.Abort();
     }
     if (datastream != null)
     {
         datastream.Close();
     }
 }
示例#11
0
        public override void Stop()
        {
            if (worker != null)
            {
                worker.Abort();
            }

            if (imageServer != null)
            {
                imageServer.Dispose();
            }
        }
示例#12
0
 public override void Stop()
 {
     logger.Log("AppPowerMeter clean up");
     if (worker != null)
     {
         worker.Abort();
     }
     if (datastream != null)
     {
         datastream.Close();
     }
 }
示例#13
0
        public override void Stop()
        {
            logger.Log("Stop() at {0}", ToString());

            if (workThread != null)
            {
                workThread.Abort();
            }

            if (imageServer != null)
            {
                imageServer.Dispose();
            }
        }
示例#14
0
        public override void Stop()
        {
            if (worker1 != null)
            {
                worker1.Abort();
            }
            if (worker2 != null)
            {
                worker2.Abort();
            }
            if (_mjpeg != null)
            {
                _mjpeg.StopStream();
            }

            imageServer.Dispose();
        }
        public override void Stop()
        {
            if (serialPortOpen)
            {
                serPort.Close();
            }

            logger.Log("Stop() at {0}", ToString());
            if (workThread != null)
            {
                workThread.Abort();
            }

            if (imageServer != null)
            {
                imageServer.Dispose();
            }
        }