WaitForDisconnection() 공개 메소드

public WaitForDisconnection ( ) : void
리턴 void
예제 #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));
        }