// Flush and disable the buffer if anyone tries to call the SendFile feature. public async Task SendFileAsync(string path, long offset, long?length, CancellationToken cancellation) { await _bufferStream.DisableBufferingAsync(cancellation); await _originalSendFileFeature.SendFileAsync(path, offset, length, cancellation); }
public Task DisableBufferingAsync(CancellationToken cancellationToken) { return(_buffer.DisableBufferingAsync(cancellationToken)); }