2
0

IIsoManager.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. #pragma warning disable CS1591
  2. using System;
  3. using System.Collections.Generic;
  4. using System.IO;
  5. using System.Threading;
  6. using System.Threading.Tasks;
  7. namespace MediaBrowser.Model.IO
  8. {
  9. public interface IIsoManager
  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="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. }