public void MyTestCleanup() { if (inboundHandler != null) { inboundHandler.StopListener(TimeSpan.FromSeconds(10)); } //give some time for the pipe to clean System.Threading.Thread.Sleep(100); }
public void MyTestCleanup() { if (inboundHandler != null) { inboundHandler.StopListener(new TimeSpan(0, 0, 10)); } //inboundHandler.Dispose(); inboundHandler = null; System.Threading.Thread.Sleep(100);//Give some time of the named pipe to cleanup itself. }