Exemple #1
0
 public PipeReader(IPipeStream pipeStream, TransportMessageHandler messageHandler, Action onDisconnected)
 {
     _pipeStream     = pipeStream;
     _messageHandler = messageHandler;
     _onDisconnected = onDisconnected;
     _transport      = new NamedPipeTransport(_pipeStream);
 }
 public ClientConnectionContext(NamedPipeClientStream pipeStream, CallOptions callOptions, bool isServerUnary)
 {
     _pipeStream    = pipeStream;
     _callOptions   = callOptions;
     _isServerUnary = isServerUnary;
     Transport      = new NamedPipeTransport(pipeStream);
     _payloadQueue  = new PayloadQueue();
     _deadline      = new Deadline(callOptions.Deadline);
 }
 public ServerConnectionContext(INamedPipeServerStream pipeStream,
                                Dictionary <string, Func <ServerConnectionContext, Task> > methodHandlers)
 {
     CallContext             = new NamedPipeCallContext(this);
     PipeStream              = pipeStream;
     Transport               = new NamedPipeTransport(pipeStream);
     _methodHandlers         = methodHandlers;
     _payloadQueue           = new PayloadQueue();
     CancellationTokenSource = new CancellationTokenSource();
 }
 public ResponseStreamWriterImpl(NamedPipeTransport stream, CancellationToken cancellationToken, Marshaller <T> marshaller, Func <bool> isCompleted)
     : base(stream, cancellationToken, marshaller)
 {
     _isCompleted = isCompleted;
 }
Exemple #5
0
 public StreamWriterImpl(NamedPipeTransport stream, CancellationToken cancellationToken, Marshaller <T> marshaller)
 {
     Stream             = stream;
     _cancellationToken = cancellationToken;
     _marshaller        = marshaller;
 }
 public RequestStreamWriterImpl(NamedPipeTransport stream, CancellationToken cancellationToken, Marshaller <T> marshaller)
     : base(stream, cancellationToken, marshaller)
 {
 }