aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Common/IO/IIsoManager.cs
diff options
context:
space:
mode:
Diffstat (limited to 'MediaBrowser.Common/IO/IIsoManager.cs')
-rw-r--r--MediaBrowser.Common/IO/IIsoManager.cs27
1 files changed, 27 insertions, 0 deletions
diff --git a/MediaBrowser.Common/IO/IIsoManager.cs b/MediaBrowser.Common/IO/IIsoManager.cs
new file mode 100644
index 000000000..8e94189c4
--- /dev/null
+++ b/MediaBrowser.Common/IO/IIsoManager.cs
@@ -0,0 +1,27 @@
+using System;
+using System.Threading;
+using System.Threading.Tasks;
+
+namespace MediaBrowser.Common.IO
+{
+ public interface IIsoManager : IDisposable
+ {
+ /// <summary>
+ /// Mounts the specified iso path.
+ /// </summary>
+ /// <param name="isoPath">The iso path.</param>
+ /// <param name="cancellationToken">The cancellation token.</param>
+ /// <param name="visibleToAllProcesses">if set to <c>true</c> [visible to all processes].</param>
+ /// <returns>IsoMount.</returns>
+ /// <exception cref="System.ArgumentNullException">isoPath</exception>
+ /// <exception cref="System.IO.IOException">Unable to create mount.</exception>
+ Task<IIsoMount> Mount(string isoPath, CancellationToken cancellationToken, bool visibleToAllProcesses = true);
+
+ /// <summary>
+ /// Determines whether this instance can mount the specified path.
+ /// </summary>
+ /// <param name="path">The path.</param>
+ /// <returns><c>true</c> if this instance can mount the specified path; otherwise, <c>false</c>.</returns>
+ bool CanMount(string path);
+ }
+} \ No newline at end of file