Пример #1
0
        public void Rename(MediaFolder @new, MediaFolder old)
        {
            MediaFolders.RenameFolder(@new, old);

            var blobClient = CloudStorageAccountHelper.GetStorageAccount().CreateCloudBlobClient();
            //var dir = blobContainer.GetDirectoryReference();
            var oldPrefix = old.GetMediaFolderItemPath(null) + "/";
            var newPrefix = @new.GetMediaFolderItemPath(null) + "/";

            MoveDirectory(blobClient, newPrefix, oldPrefix);
        }
Пример #2
0
 public void Remove(MediaFolder item)
 {
     MediaFolders.RemoveFolder(item);
     (new MediaContentProvider()).Delete(item);
 }
Пример #3
0
 public void Update(MediaFolder @new, MediaFolder old)
 {
     MediaFolders.UpdateFolder(@new);
 }
Пример #4
0
 public void Add(MediaFolder item)
 {
     MediaFolders.AddFolder(item);
 }
Пример #5
0
 public MediaFolder Get(MediaFolder dummy)
 {
     return(MediaFolders.GetFolder(dummy));
 }
Пример #6
0
 public IEnumerable <MediaFolder> All(Repository repository)
 {
     return(MediaFolders.RootFolders(repository).AsQueryable());
 }
Пример #7
0
 public IQueryable <MediaFolder> ChildFolders(MediaFolder parent)
 {
     return(MediaFolders.ChildFolders(parent).AsQueryable());
 }
Пример #8
0
 public IQueryable<MediaFolder> All(Repository repository)
 {
     return MediaFolders.RootFolders(repository).AsQueryable();
 }