public Stream Upgrade() { // causes writes to context.Response.Body to throw _upgradeableResponse.SetInnerStream(_throwingResponseStream); // _upgradeStream always uses _response return(_upgradeStream); }
public Stream Upgrade() { _upgradeStream = new HttpUpgradeStream(_request, _response); // causes writes to context.Response.Body to throw _upgradeableResponse.SetInnerStream(_throwingResponseStream); _emptyRequest = new EmptyStream(_context); _upgradeableRequest.SetInnerStream(_emptyRequest); // _upgradeStream always uses _response return(_upgradeStream); }