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); }
public Task StartAsync(CancellationToken cancellationToken = default) { return(inner.StartAsync(cancellationToken)); }
public Task StartAsync(CancellationToken token = default) { OnWrite(); return(_innerBodyFeature.StartAsync(token)); }
public Task StartAsync(CancellationToken cancellationToken = default) { return(_responseBodyFeature.StartAsync(cancellationToken)); }
public Task StartAsync(CancellationToken cancellationToken = default) { _responseFeature.HasStarted = true; return(_innerResponseBodyFeature.StartAsync(cancellationToken)); }
public Task StartAsync(CancellationToken cancellationToken) => _initialResponseFeature.StartAsync(cancellationToken);
public async Task StartAsync(CancellationToken cancellationToken = new CancellationToken()) => await _priorFeature.StartAsync(cancellationToken);
public Task StartAsync(CancellationToken token = default) { Initialize(); return(_responseBodyFeature.StartAsync(token)); }