Exemple #1
0
 public void Cleanup()
 {
     protocol = null;
     pipe.Disconnect();
     pipe.Dispose();
 }
Exemple #2
0
 public void Initialise()
 {
     pipeName = Guid.NewGuid().ToString();
     pipe     = new NamedPipeServerStream(pipeName, PipeDirection.InOut, 1);
     protocol = new ManagedCommunicationProtocol(pipe);
 }