Пример #1
0
        public void Stop()
        {
            m_ShouldKeepRunning = false;

            lock (m_Connections)
                foreach (var s_Client in m_Connections.ToArray())
                    s_Client.Close();

            var s_DummyClient = new PipemanClient(m_PipeName);
            s_DummyClient.Start();
            s_DummyClient.WaitForConnection(TimeSpan.FromSeconds(2));
            s_DummyClient.Stop();
            s_DummyClient.WaitForDisconnection(TimeSpan.FromSeconds(2));
        }
Пример #2
0
        public void Stop()
        {
            m_ShouldKeepRunning = false;

            lock (m_Connections)
                foreach (var s_Client in m_Connections.ToArray())
                {
                    s_Client.Close();
                }

            var s_DummyClient = new PipemanClient(m_PipeName);

            s_DummyClient.Start();
            s_DummyClient.WaitForConnection(TimeSpan.FromSeconds(2));
            s_DummyClient.Stop();
            s_DummyClient.WaitForDisconnection(TimeSpan.FromSeconds(2));
        }