IIsoMounter.cs 1.1 KB

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