public Proto2Stream(Proto2StreamContext context) : base(context) { _context = context; _inputFlowControl = new StreamInputFlowControl( context.StreamId, context.FrameWriter, context.ConnectionInputFlowControl, context.ServerPeerSettings.InitialWindowSize, context.ServerPeerSettings.InitialWindowSize / 2); _outputFlowControl = new StreamOutputFlowControl( context.ConnectionOutputFlowControl, context.ClientPeerSettings.InitialWindowSize); _http2Output = new Proto2OutputProducer( context.StreamId, context.FrameWriter, _outputFlowControl, context.TimeoutControl, context.MemoryPool, this, context.ServiceContext.Log); RequestBodyPipe = CreateRequestBodyPipe(context.ServerPeerSettings.InitialWindowSize); Output = _http2Output; }
public Proto2Stream(IProtoApplication <TContext> application, Proto2StreamContext context) : base(context) { _application = application; }