Creates a server for a bi-directional pipe.
Inheritance: IDisposable
コード例 #1
0
 /// <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();
 }
コード例 #2
0
 /// <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;
 }
コード例 #3
0
 /// <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;
 }
コード例 #4
0
 /// <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();
 }