Пример #1
0
        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();
        }
Пример #3
0
        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());
 }
Пример #5
0
 public Task CompleteAsync()
 {
     return(_responseBodyFeature.CompleteAsync());
 }
Пример #6
0
 public async Task CompleteAsync()
 {
     await(_completeAsyncAction?.Invoke() ?? Task.CompletedTask);
     await _innerResponseBodyFeature.CompleteAsync();
 }
 public async Task CompleteAsync() =>
 await _priorFeature.CompleteAsync();