IIsoMounter.cs 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. #pragma warning disable CS1591
  2. #pragma warning disable SA1600
  3. using System;
  4. using System.IO;
  5. using System.Threading;
  6. using System.Threading.Tasks;
  7. namespace MediaBrowser.Model.IO
  8. {
  9. public interface IIsoMounter
  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. /// Gets the name.
  28. /// </summary>
  29. /// <value>The name.</value>
  30. string Name { get; }
  31. }
  32. }