IIsoManager.cs 1.2 KB

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