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(); } } }
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(); } }
public override void Stop() { logger.Log("Sensor:clean up"); if (serviceHost != null) { serviceHost.Close(); } if (appServer != null) { appServer.Dispose(); } }
public override void Stop() { lock (this) { if (serviceHost != null) { serviceHost.Close(); } if (appServer != null) { appServer.Dispose(); } } }
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; } }