aboutsummaryrefslogtreecommitdiff
path: root/Emby.IsoMounting/IsoMounter/LinuxMount.cs
diff options
context:
space:
mode:
authorJoshua M. Boniface <joshua@boniface.me>2019-08-31 21:22:41 -0400
committerGitHub <noreply@github.com>2019-08-31 21:22:41 -0400
commitba06ef57a9b265608cc9cdd8e681fed7d2231d4d (patch)
tree056d111ed02db8bbfc044b4b5497d04d9b53def8 /Emby.IsoMounting/IsoMounter/LinuxMount.cs
parent0d7adc33828975559664729cc3c4009503f782de (diff)
parent14fbd845c21a2b4eebad7dd2f0e0ef502bed28eb (diff)
Merge pull request #1687 from Bond-009/isomounter
Move IsoMounter to plugin
Diffstat (limited to 'Emby.IsoMounting/IsoMounter/LinuxMount.cs')
-rw-r--r--Emby.IsoMounting/IsoMounter/LinuxMount.cs58
1 files changed, 0 insertions, 58 deletions
diff --git a/Emby.IsoMounting/IsoMounter/LinuxMount.cs b/Emby.IsoMounting/IsoMounter/LinuxMount.cs
deleted file mode 100644
index ccad8ce20..000000000
--- a/Emby.IsoMounting/IsoMounter/LinuxMount.cs
+++ /dev/null
@@ -1,58 +0,0 @@
-using System;
-using MediaBrowser.Model.IO;
-
-namespace IsoMounter
-{
- /// <summary>
- /// Class LinuxMount.
- /// </summary>
- internal class LinuxMount : IIsoMount
- {
- private readonly LinuxIsoManager _linuxIsoManager;
-
- private bool _disposed = false;
-
- /// <summary>
- /// Initializes a new instance of the <see cref="LinuxMount" /> class.
- /// </summary>
- /// <param name="isoManager">The ISO manager that mounted this ISO file.</param>
- /// <param name="isoPath">The path to the ISO file.</param>
- /// <param name="mountFolder">The folder the ISO is mounted in.</param>
- internal LinuxMount(LinuxIsoManager isoManager, string isoPath, string mountFolder)
- {
- _linuxIsoManager = isoManager;
-
- IsoPath = isoPath;
- MountedPath = mountFolder;
- }
-
- /// <inheritdoc />
- public string IsoPath { get; }
-
- /// <inheritdoc />
- public string MountedPath { get; }
-
- /// <inheritdoc />
- public void Dispose()
- {
- Dispose(true);
- GC.SuppressFinalize(this);
- }
-
- /// <summary>
- /// Releases the unmanaged resources and disposes of the managed resources used.
- /// </summary>
- /// <param name="disposing">Whether or not the managed resources should be disposed.</param>
- protected virtual void Dispose(bool disposing)
- {
- if (_disposed)
- {
- return;
- }
-
- _linuxIsoManager.OnUnmount(this);
-
- _disposed = true;
- }
- }
-}