コード例 #1
0
        private async Task <HttpResponse> GetResponseAsync(HttpResponseMessage response, IHttpResponseBodyFeature httpResponseBodyFeature)
        {
            ProxyHeaders(httpContextAccessor.HttpContext.Response, response);

            httpContextAccessor.HttpContext.Response.StatusCode = (int)response.StatusCode;
            await httpResponseBodyFeature.StartAsync();

            await ProxyBodyAsync(httpContextAccessor.HttpContext.Response, response);

            return(httpContextAccessor.HttpContext.Response);
        }
コード例 #2
0
 public Task StartAsync(CancellationToken cancellationToken = default)
 {
     return(inner.StartAsync(cancellationToken));
 }
コード例 #3
0
 public Task StartAsync(CancellationToken token = default)
 {
     OnWrite();
     return(_innerBodyFeature.StartAsync(token));
 }
コード例 #4
0
 public Task StartAsync(CancellationToken cancellationToken = default)
 {
     return(_responseBodyFeature.StartAsync(cancellationToken));
 }
コード例 #5
0
 public Task StartAsync(CancellationToken cancellationToken = default)
 {
     _responseFeature.HasStarted = true;
     return(_innerResponseBodyFeature.StartAsync(cancellationToken));
 }
コード例 #6
0
 public Task StartAsync(CancellationToken cancellationToken) =>
 _initialResponseFeature.StartAsync(cancellationToken);
コード例 #7
0
 public async Task StartAsync(CancellationToken cancellationToken = new CancellationToken()) =>
 await _priorFeature.StartAsync(cancellationToken);
        public Task StartAsync(CancellationToken token = default)
        {
            Initialize();

            return(_responseBodyFeature.StartAsync(token));
        }