Пример #1
0
 private NamedPipeServerStream CreatePipe(string connectionPipeName)
 {
     return(_security == null
                         ? PipeServerFactory.CreatePipe(connectionPipeName)
                         : PipeServerFactory.CreatePipe(connectionPipeName, _bufferSize, _security));
 }
Пример #2
0
 private NamedPipeServerStream CreateAndConnectPipe()
 {
     return(_security == null
                         ? PipeServerFactory.CreateAndConnectPipe(_pipeName)
                         : PipeServerFactory.CreateAndConnectPipe(_pipeName, _bufferSize, _security));
 }