IIsoManager.cs 1.2 KB

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