Пример #1
0
        internal LinuxMount(LinuxIsoManager isoManager, IMediaEncoder mediaEncoder, string isoPath, string mountFolder, string container)
        {
            linuxIsoManager   = isoManager;
            this.mediaEncoder = mediaEncoder;

            IsoPath           = isoPath;
            MountedPath       = mountFolder;
            MountedFolderPath = mountFolder;
            MountedProtocol   = MediaProtocol.File;

            if (string.Equals(container, MediaContainer.DvdIso.ToString(), StringComparison.OrdinalIgnoreCase))
            {
                var files = mediaEncoder.GetDvdVobFiles(mountFolder);

                var mountedPath = string.Join("|", files);
            }
            else if (string.Equals(container, MediaContainer.BlurayIso.ToString(), StringComparison.OrdinalIgnoreCase))
            {
                var files = mediaEncoder.GetBlurayM2tsFiles(mountFolder);

                var mountedPath = string.Join("|", files);
            }
        }