IIsoMounter.cs 1.1 KB

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