public void Test_SendReceiveMessage() { Thread t = new Thread(this.RunPipeServer); t.Start(); PipeClientChannel clientChannel = new PipeClientChannel("testpipe"); string response = clientChannel.SendReceive("Hello Server, this is client 1 !"); Console.WriteLine(response); Thread.Sleep(1000); response = clientChannel.SendReceive(data); Console.WriteLine(response); Thread.Sleep(1000); clientChannel.Dispose(); }
public void Test_Constructor() { PipeClientChannel clientChannel = new PipeClientChannel("testpipe"); clientChannel.Dispose(); }