DisableBufferingAsync() 개인적인 메소드

private DisableBufferingAsync ( CancellationToken cancellationToken ) : Task
cancellationToken System.Threading.CancellationToken
리턴 Task
예제 #1
0
        // 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));
 }