IIsoManager.cs 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. #pragma warning disable CS1591
  2. using System;
  3. using System.Collections.Generic;
  4. using System.IO;
  5. using System.Threading;
  6. using System.Threading.Tasks;
  7. namespace MediaBrowser.Model.IO
  8. {
  9. public interface IIsoManager
  10. {
  11. /// <summary>
  12. /// Mounts the specified iso path.
  13. /// </summary>
  14. /// <param name="isoPath">The iso path.</param>
  15. /// <param name="cancellationToken">The cancellation token.</param>
  16. /// <returns>IsoMount.</returns>
  17. /// <exception cref="ArgumentNullException">isoPath</exception>
  18. /// <exception cref="IOException">Unable to create mount.</exception>
  19. Task<IIsoMount> Mount(string isoPath, CancellationToken cancellationToken);
  20. /// <summary>
  21. /// Determines whether this instance can mount the specified path.
  22. /// </summary>
  23. /// <param name="path">The path.</param>
  24. /// <returns><c>true</c> if this instance can mount the specified path; otherwise, <c>false</c>.</returns>
  25. bool CanMount(string path);
  26. /// <summary>
  27. /// Adds the parts.
  28. /// </summary>
  29. /// <param name="mounters">The mounters.</param>
  30. void AddParts(IEnumerable<IIsoMounter> mounters);
  31. }
  32. }