public void Import(Site site, CustomDirectory dir, Stream zipStream, bool @override) { locker.EnterWriteLock(); try { ImportHelper.Import(site, dir.PhysicalPath, zipStream, @override); } finally { locker.ExitWriteLock(); } }
public void Import(Site site, System.IO.Stream zipStream, bool @override) { GetLocker().EnterWriteLock(); try { var destDir = ModelActivatorFactory <T> .GetActivator().CreateDummy(site).BasePhysicalPath; ImportHelper.Import(site, destDir, zipStream, @override); } finally { GetLocker().ExitWriteLock(); } }
public void Import(Site site, Page parent, Stream zipStream, bool @override) { GetLocker().EnterWriteLock(); try { var destDir = ""; if (parent != null) { destDir = parent.PhysicalPath; } else { destDir = new Page(site, "Dummy").BasePhysicalPath; } ImportHelper.Import(site, destDir, zipStream, @override); } finally { GetLocker().ExitWriteLock(); } }
public void Import(Site site, string destDir, System.IO.Stream zipStream, bool @override) { ImportHelper.Import(site, destDir, zipStream, @override); }
public void Import(Site site, System.IO.Stream zipStream, bool @override) { ImportHelper.Import(site, (new ScriptFile(site, "dummy.js")).BasePhysicalPath, zipStream, @override); }