2
0

IIsoManager.cs 1.1 KB

123456789101112131415161718192021222324252627
  1. using System;
  2. using System.Threading;
  3. using System.Threading.Tasks;
  4. namespace MediaBrowser.Common.IO
  5. {
  6. public interface IIsoManager : 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. /// <param name="visibleToAllProcesses">if set to <c>true</c> [visible to all processes].</param>
  14. /// <returns>IsoMount.</returns>
  15. /// <exception cref="System.ArgumentNullException">isoPath</exception>
  16. /// <exception cref="System.IO.IOException">Unable to create mount.</exception>
  17. Task<IIsoMount> Mount(string isoPath, CancellationToken cancellationToken, bool visibleToAllProcesses = true);
  18. /// <summary>
  19. /// Determines whether this instance can mount the specified path.
  20. /// </summary>
  21. /// <param name="path">The path.</param>
  22. /// <returns><c>true</c> if this instance can mount the specified path; otherwise, <c>false</c>.</returns>
  23. bool CanMount(string path);
  24. }
  25. }