Exemple #1
0
 public void Import(Repository repository, T folder, Stream zipStream, bool @override)
 {
     GetLocker().EnterWriteLock();
     try
     {
         string basePath = FolderPath.GetBaseDir <T>(repository);
         if (null != folder)
         {
             basePath = new FolderPath(folder).PhysicalPath;
         }
         ImportHelper.Import(basePath, zipStream, @override);
     }
     finally
     {
         GetLocker().ExitWriteLock();
     }
 }
Exemple #2
0
        public IEnumerable <T> All(Repository repository)
        {
            var baseDir = FolderPath.GetBaseDir <T>(repository);

            return(GetFolders(repository, baseDir).AsQueryable());
        }