Ejemplo n.º 1
0
 public OutgoingPipe(NodeConnectionInfo connectionInfo, CancellationToken externalToken, PipeOptions options, TcpListenerPiper listenerPiper)
     : base(externalToken, options)
 {
     _connectionInfo = connectionInfo;
     _listenerPiper  = listenerPiper;
     _description    = _connectionInfo.ToString();
     _connectionTask = ConnectionTask();
 }
Ejemplo n.º 2
0
 public IncomingPipe(CancellationToken externalToken, PipeOptions options, TcpClient client, TcpListenerPiper parent) : base(externalToken, options)
 {
     _parent         = parent;
     _description    = client.Client.RemoteEndPoint.ToString();
     _connectionTask = ConnectionTask(client);
 }
Ejemplo n.º 3
0
 protected Pipe(CancellationToken externalToken, PipeOptions options)
 {
     _options           = options;
     _cancellationToken = CancellationTokenSource.CreateLinkedTokenSource(new[] { externalToken });
 }