IStreamHelper.cs 805 B

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