Ejemplo n.º 1
0
        private static async Task ProcessClient <TContext>(IHttpApplication <TContext> application, IReadableChannel input, IWritableChannel output)
        {
            var connection = new HttpConnection <TContext>(application, input, output);

            await connection.ProcessAllRequests();

            output.CompleteWriting();
            input.CompleteReading();
        }
Ejemplo n.º 2
0
        private static async Task ProcessClient <TContext>(IHttpApplication <TContext> application, IChannel channel)
        {
            var connection = new HttpConnection <TContext>(application, channel.Input, channel.Output);

            await connection.ProcessAllRequests();

            channel.Output.Complete();
            channel.Input.Complete();
        }