Creates a server for a bi-directional pipe.
Наследование: IDisposable
 /// <summary>
 /// Initializes a new instance of the <see cref="NamedPipeConnection"/> class.
 /// </summary>
 /// <param name="server">The server.</param>
 public NamedPipeConnection([NotNull] NamedPipeServer server)
 {
     _server = server;
     _cancellationTokenSource = new CancellationTokenSource();
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="NamedPipeServerLogger"/> class.
 /// </summary>
 /// <param name="server">The server.</param>
 public NamedPipeServerLogger([NotNull] NamedPipeServer server)
     // ReSharper disable once AssignNullToNotNullAttribute
     : base(server.Service.ServiceName, true, LoggingLevels.All)
 {
     _server = server;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="NamedPipeServerLogger"/> class.
 /// </summary>
 /// <param name="server">The server.</param>
 public NamedPipeServerLogger([NotNull] NamedPipeServer server)
 // ReSharper disable once AssignNullToNotNullAttribute
     : base(server.Service.ServiceName, true, LoggingLevels.All)
 {
     _server = server;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="NamedPipeConnection"/> class.
 /// </summary>
 /// <param name="server">The server.</param>
 public NamedPipeConnection([NotNull] NamedPipeServer server)
 {
     _server = server;
     _cancellationTokenSource = new CancellationTokenSource();
 }