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)); }
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)); }