IStreamHelper.cs 586 B

123456789101112131415161718
  1. #pragma warning disable CS1591
  2. using System;
  3. using System.IO;
  4. using System.Threading;
  5. using System.Threading.Tasks;
  6. namespace MediaBrowser.Model.IO
  7. {
  8. public interface IStreamHelper
  9. {
  10. Task CopyToAsync(Stream source, Stream destination, int bufferSize, Action? onStarted, CancellationToken cancellationToken);
  11. Task CopyToAsync(Stream source, Stream destination, int bufferSize, int emptyReadLimit, CancellationToken cancellationToken);
  12. Task CopyUntilCancelled(Stream source, Stream target, int bufferSize, CancellationToken cancellationToken);
  13. }
  14. }