Exemplo n.º 1
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();
                }
            }
        }
Exemplo n.º 2
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();
            }
        }
Exemplo n.º 3
0
        public override void Stop()
        {
            logger.Log("Sensor:clean up");

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

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

                if (appServer != null)
                {
                    appServer.Dispose();
                }
            }
        }
Exemplo n.º 5
0
        protected virtual void Dispose(bool disposing)
        {
            if (!this.disposed)
            {
                if (disposing)
                {
                    try
                    {
                        service.Close();
                    }
                    catch (Exception e)
                    {
                        logger.Log("Exception in disposing " + this.ToString() + ". " + e);
                    }
                }

                disposed = true;
            }
        }