private StorageRoot GetTempStorage(StorageOptions options = null) { var tempPath = Path.Combine(TempPath, Guid.NewGuid().ToString()); var storage = FileStorgeProvider.CreateStorage(tempPath, true, options); return(storage); }
private StorageRoot GetTempStorage(bool useCache = true) { var options = new StorageOptions { CacheTimeout = useCache ? -1 : 0 }; var tempPath = Path.Combine(TempPath, Guid.NewGuid().ToString()); var storage = FileStorgeProvider.CreateStorage(tempPath, true, options); return(storage); }