IStreamHelper.cs 702 B

1234567891011121314151617181920
  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 CopyToAsync(Stream source, Stream destination, long copyLength, CancellationToken cancellationToken);
  13. Task CopyUntilCancelled(Stream source, Stream target, int bufferSize, CancellationToken cancellationToken);
  14. }
  15. }