public async Task CompleteAsync() { if (_complete) { return; } await FinishCompressionAsync(); // Sets _complete await _innerBodyFeature.CompleteAsync(); }
public async Task CompleteAsync() { if (_finished) { return; } await FinishAsync(); // Sets a `_finished` field await _responseBodyFeature.CompleteAsync(); }
public async Task CompleteAsync() { // TODO(JamesNK): When CompleteAsync is called from another thread (e.g. deadline exceeded), // there is the potential for the main thread and CompleteAsync to both be writing to the response. // Shouldn't matter to the client because it will have already thrown deadline exceeded error, but // the response could return badly formatted trailers. await WriteTrailersAsync(); await _initialResponseFeature.CompleteAsync(); _isComplete = true; }
public Task CompleteAsync() { return(inner.CompleteAsync()); }
public Task CompleteAsync() { return(_responseBodyFeature.CompleteAsync()); }
public async Task CompleteAsync() { await(_completeAsyncAction?.Invoke() ?? Task.CompletedTask); await _innerResponseBodyFeature.CompleteAsync(); }
public async Task CompleteAsync() => await _priorFeature.CompleteAsync();