Example #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);
        }
 public ProtoResponsePipeWriter(IProtoResponseControl pipeControl)
 {
     _pipeControl = pipeControl;
     _state = ProtoStreamState.Closed;
 }