From 14fbd845c21a2b4eebad7dd2f0e0ef502bed28eb Mon Sep 17 00:00:00 2001 From: Bond_009 Date: Thu, 29 Aug 2019 23:11:55 +0200 Subject: Move IsoMounter to plugin --- Emby.IsoMounting/IsoMounter/LinuxMount.cs | 58 ------------------------------- 1 file changed, 58 deletions(-) delete mode 100644 Emby.IsoMounting/IsoMounter/LinuxMount.cs (limited to 'Emby.IsoMounting/IsoMounter/LinuxMount.cs') diff --git a/Emby.IsoMounting/IsoMounter/LinuxMount.cs b/Emby.IsoMounting/IsoMounter/LinuxMount.cs deleted file mode 100644 index ccad8ce20e..0000000000 --- a/Emby.IsoMounting/IsoMounter/LinuxMount.cs +++ /dev/null @@ -1,58 +0,0 @@ -using System; -using MediaBrowser.Model.IO; - -namespace IsoMounter -{ - /// - /// Class LinuxMount. - /// - internal class LinuxMount : IIsoMount - { - private readonly LinuxIsoManager _linuxIsoManager; - - private bool _disposed = false; - - /// - /// Initializes a new instance of the class. - /// - /// The ISO manager that mounted this ISO file. - /// The path to the ISO file. - /// The folder the ISO is mounted in. - internal LinuxMount(LinuxIsoManager isoManager, string isoPath, string mountFolder) - { - _linuxIsoManager = isoManager; - - IsoPath = isoPath; - MountedPath = mountFolder; - } - - /// - public string IsoPath { get; } - - /// - public string MountedPath { get; } - - /// - public void Dispose() - { - Dispose(true); - GC.SuppressFinalize(this); - } - - /// - /// Releases the unmanaged resources and disposes of the managed resources used. - /// - /// Whether or not the managed resources should be disposed. - protected virtual void Dispose(bool disposing) - { - if (_disposed) - { - return; - } - - _linuxIsoManager.OnUnmount(this); - - _disposed = true; - } - } -} -- cgit v1.2.3