Ejemplo n.º 1
0
        /// <summary>
        /// Uns the mount.
        /// </summary>
        private void UnMount()
        {
            lock (_syncLock)
            {
                if (_pfmFileMount != null)
                {
                    Logger.Info("Unmounting {0}", IsoPath);

                    _pfmFileMount.Cancel();
                    _pfmFileMount.Detach();

                    _isoManager.OnUnmount(this);

                    try
                    {
                        _pfmFileMount.Dispose();
                    }
                    catch (Exception ex)
                    {
                        Logger.ErrorException("Error disposing file mount for {0}", ex, IsoPath);
                    }

                    _pfmFileMount = null;
                }
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Prevents a default instance of the <see cref="PismoMount" /> class from being created.
        /// </summary>
        /// <param name="mount">The mount.</param>
        /// <param name="isoPath">The iso path.</param>
        /// <param name="isoManager">The iso manager.</param>
        /// <param name="logger">The logger.</param>
        internal PismoMount(PfmFileMount mount, string isoPath, PismoIsoManager isoManager, ILogger logger)
        {
            _pfmFileMount = mount;
            IsoPath       = isoPath;
            _isoManager   = isoManager;
            Logger        = logger;

            MountedPath = mount.GetMount().GetUncName();
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Prevents a default instance of the <see cref="PismoMount" /> class from being created.
        /// </summary>
        /// <param name="mount">The mount.</param>
        /// <param name="isoPath">The iso path.</param>
        /// <param name="isoManager">The iso manager.</param>
        /// <param name="logger">The logger.</param>
        internal PismoMount(PfmFileMount mount, string isoPath, PismoIsoManager isoManager, ILogger logger)
        {
            _pfmFileMount = mount;
            IsoPath = isoPath;
            _isoManager = isoManager;
            Logger = logger;

            MountedPath = mount.GetMount().GetUncName();
        }
Ejemplo n.º 4
0
        /// <summary>
        /// Uns the mount.
        /// </summary>
        private void UnMount()
        {
            if (_pfmFileMount != null)
            {
                Logger.Info("Unmounting {0}", IsoPath);

                _pfmFileMount.Cancel();
                _pfmFileMount.Detach();

                _isoManager.OnUnmount(this);

                _pfmFileMount.Dispose();
                _pfmFileMount = null;
            }
        }
        /// <summary>
        /// Uns the mount.
        /// </summary>
        private void UnMount()
        {
            lock (_syncLock)
            {
                if (_pfmFileMount != null)
                {
                    Logger.Info("Unmounting {0}", IsoPath);

                    _pfmFileMount.Cancel();
                    _pfmFileMount.Detach();

                    _isoManager.OnUnmount(this);

                    try
                    {
                        _pfmFileMount.Dispose();
                    }
                    catch (Exception ex)
                    {
                        Logger.ErrorException("Error disposing file mount for {0}", ex, IsoPath);
                    }

                    _pfmFileMount = null;
                }
            }
        }
Ejemplo n.º 6
0
        /// <summary>
        /// Uns the mount.
        /// </summary>
        private void UnMount()
        {
            if (_pfmFileMount != null)
            {
                Logger.Info("Unmounting {0}", IsoPath);

                _pfmFileMount.Cancel();
                _pfmFileMount.Detach();

                _isoManager.OnUnmount(this);

                _pfmFileMount.Dispose();
                _pfmFileMount = null;
            }
        }