Ejemplo n.º 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();
            }
        }
Ejemplo n.º 2
0
        public override void Stop()
        {
            lock (this)
            {
                if (serviceHost != null)
                {
                    serviceHost.Close();
                }

                //close all windows
                foreach (VPort cameraPort in registeredCameras.Keys)
                {
                    StopRecording(cameraPort, true /* force */);
                }

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

                if (recordingServer != null)
                {
                    recordingServer.Dispose();
                }
            }
        }
Ejemplo n.º 3
0
        public void Dispose()
        {
            webFileServer.Dispose();

            coordinator.DispatcherConnections.EndpointAdded   -= OnDispatcherAdded;
            coordinator.DispatcherConnections.EndpointRemoved -= OnDispatcherRemoved;
            coordinator.AgentConnections.EndpointAdded        -= OnAgentAdded;
            coordinator.AgentConnections.EndpointRemoved      -= OnAgentRemoved;
        }
Ejemplo n.º 4
0
 public override void Stop()
 {
     logger.Log("Stop() at {0}", ToString());
     if (workThread != null)
     {
         workThread.Abort();
     }
     imageServer.Dispose();
 }
Ejemplo n.º 5
0
        public override void Stop()
        {
            if (worker != null)
            {
                worker.Abort();
            }

            if (imageServer != null)
            {
                imageServer.Dispose();
            }
        }
Ejemplo n.º 6
0
        protected virtual void Dispose(bool disposing)
        {
            if (!this.disposed)
            {
                if (disposing)
                {
                    scoutService.Dispose();
                    appServer.Dispose();
                }

                disposed = true;
            }
        }
Ejemplo n.º 7
0
        public override void Stop()
        {
            logger.Log("Sensor:clean up");

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

            if (appServer != null)
            {
                appServer.Dispose();
            }
        }
Ejemplo n.º 8
0
        public override void Stop()
        {
            lock (this)
            {
                if (serviceHost != null)
                {
                    serviceHost.Close();
                }

                if (appServer != null)
                {
                    appServer.Dispose();
                }
            }
        }
Ejemplo n.º 9
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();
            }
        }
Ejemplo n.º 11
0
        protected virtual void Dispose(bool disposing)
        {
            if (!this.disposed)
            {
                if (disposing)
                {
                    scoutService.Dispose();
                    appServer.Dispose();

                    lock (this)
                    {
                        listenClient.Close();
                        listenClientClosed = true;
                    }
                }

                disposed = true;
            }
        }
Ejemplo n.º 12
0
        public override void Stop()
        {
            if (_frameSource != null && _frameSource.Camera != null)
            {
                _frameSource.Camera.Dispose();
            }

            //if (worker != null)
            //    worker.Abort();

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

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