Ejemplo n.º 1
0
        public BodyControl(IProtoBodyControlFeature bodyControl, IProtoResponseControl responseControl)
        {
            _requestReader      = new ProtoRequestPipeReader();
            _request            = new ProtoRequestStream(bodyControl, _requestReader);
            _emptyRequestReader = new ProtoRequestPipeReader();
            _emptyRequest       = new ProtoRequestStream(bodyControl, _emptyRequestReader);

            _responseWriter      = new ProtoResponsePipeWriter(responseControl);
            _response            = new ProtoResponseStream(bodyControl, _responseWriter);
            _upgradeableResponse = new WrappingStream(_response);
            _upgradeStream       = new ProtoUpgradeStream(_request, _response);
        }
Ejemplo n.º 2
0
 public ProtoRequestStream(IProtoBodyControlFeature bodyControl, ProtoRequestPipeReader pipeReader)
     : base(pipeReader)
 {
     _bodyControl = bodyControl;
     _pipeReader  = pipeReader;
 }
Ejemplo n.º 3
0
 public ProtoResponseStream(IProtoBodyControlFeature bodyControl, ProtoResponsePipeWriter pipeWriter)
     : base(pipeWriter)
 {
     _bodyControl = bodyControl;
     _pipeWriter  = pipeWriter;
 }