예제 #1
0
        public Task <ConcurrentBag <SelectableItem> > GetItems()
        {
            var folders = FolderService.GetFolders(m_path);
            var items   = folders.Select(f => new SelectableItem(m_prefix + FileService.GetFileName(f), () => GetActions(f))).ToList();

            return(Task.FromResult(new ConcurrentBag <SelectableItem>(items)));
        }
예제 #2
0
 public IEnumerable <string> Get()
 {
     try
     {
         using (FolderService folderService = new FolderService())
         {
             return(folderService.GetFolders(GetAuthKeyFromHeader()));
         }
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }