コード例 #1
0
        public async Task Invoke(Microsoft.AspNetCore.Http.HttpContext httpContext)
        {
            var reader    = new HttpContextReader(httpContext);
            var responder = new HttpContextResponder(httpContext);
            var context   = new HttpContextRequestContext(httpContext);

            await _invoker.InvokeAsync(reader, responder, context);

            //await _next.Invoke(httpContext);
        }
コード例 #2
0
 public HttpContextResponderTests()
 {
     _removeOutputHeaders = new RemoveOutputHeaders();
     _responder           = new HttpContextResponder(_removeOutputHeaders);
 }
コード例 #3
0
 public OutputPipelineParams(HttpContextResponder responder, ReadOnlyMemory <byte> data, CancellationToken cancellation)
 {
     Responder    = responder ?? throw new ArgumentNullException(nameof(responder));
     Data         = data;
     Cancellation = cancellation;
 }