Beispiel #1
0
 public void Stop()
 {
     foreach (var pipeKV in _pipes)
     {
         EventPipe pipe = pipeKV.Value;
         pipe.Stop();
     }
 }
Beispiel #2
0
        private void RestartConnectionWaiting(string pipeId)
        {
            log.Info("RestartWaiting!");
            EventPipe pipe = null;

            try
            {
                pipe = _pipes[pipeId];
                pipe.Stop();
            }
            catch (Exception ex)
            {
                log.Warn("Clean up connection failed: " + ex);
            }
            finally
            {
                // Restart stream to wait for new connection
                if (pipe != null)
                {
                    pipe.Start(InConnectionCallBack, OutConnectionCallBack);
                }
            }
        }