Beispiel #1
0
 public MessageReader(PayloadQueue payloadQueue, Marshaller <TMessage> marshaller,
                      CancellationToken callCancellationToken, Deadline deadline)
 {
     _payloadQueue          = payloadQueue;
     _marshaller            = marshaller;
     _callCancellationToken = callCancellationToken;
     _deadline = deadline;
 }
 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();
 }