Ejemplo n.º 1
0
        public void ArchiveMedia(IEnumerable <IServerMedia> mediaList, bool deleteAfter)
        {
            IArchiveDirectory adir = ArchiveDirectory;

            if (adir == null)
            {
                return;
            }
            foreach (IServerMedia media in mediaList)
            {
                if (media is ServerMedia)
                {
                    adir.ArchiveSave(media, deleteAfter);
                }
            }
        }
Ejemplo n.º 2
0
        public void ArchiveMedia(IEnumerable <IServerMedia> mediaList, bool deleteAfter)
        {
            if (!Engine.HaveRight(EngineRight.MediaArchive) ||
                (deleteAfter && !Engine.HaveRight(EngineRight.MediaDelete)))
            {
                return;
            }

            IArchiveDirectory adir = ArchiveDirectory;

            if (adir == null)
            {
                return;
            }
            foreach (IServerMedia media in mediaList)
            {
                if (media is ServerMedia)
                {
                    adir.ArchiveSave(media, deleteAfter);
                }
            }
        }