예제 #1
0
 public void Teardown()
 {
     _cStoreServer.Stop();
     _cEchoServer.Stop();
     _cStoreServer.Dispose();
     _cEchoServer.Dispose();
 }
예제 #2
0
 public void StopServer()
 {
     if (IsListening())
     {
         defaultServer.Stop();
         defaultServer.Dispose();
     }
 }
예제 #3
0
 public static void Stop()
 {
     isRunning = false;
     Console.WriteLine("CStoreProssesor is trying to stop...");
     server.Stop();
     server.Dispose();
     Console.WriteLine("CStoreProssesor Stopped!");
 }
예제 #4
0
 public Task StopAsync(CancellationToken cancellationToken)
 {
     if (_server != null)
     {
         _server.Stop();
         _server = null;
     }
     return(Task.CompletedTask);
 }
        /// <summary>
        /// Disposes of the current dicom server instance.
        /// </summary>
        private void DisposeDicomServer()
        {
            if (_dicomServer != null)
            {
                _dicomServer.Stop();
                //_dicomServer.BackgroundWorker.Wait();

                _dicomServer.Dispose();

                _dicomServer = null;
            }
        }
예제 #6
0
 public void StopOwnPacs()
 {
     _ourPacs.Stop();
 }
예제 #7
0
 protected override void OnStop()
 {
     server.Stop();
 }
예제 #8
0
 public void Stop()
 {
     _server.Stop();
 }