private ApplicationCacheFile CreateApplicationCache(string appTypeName) { var cacheFile = new ApplicationCacheFile(GetAppCacheRoot()); cacheFile.Name = appTypeName; cacheFile.Binary.SetStream(Tools.GetStreamFromString(BuildCacheData(appTypeName))); cacheFile.Save(); cacheFile = Node.Load<ApplicationCacheFile>(cacheFile.Id); return cacheFile; }
private ApplicationCacheFile CreateApplicationCache(string appTypeName) { var cacheFile = new ApplicationCacheFile(GetAppCacheRoot()); cacheFile.Name = appTypeName; cacheFile.Binary.SetStream(Tools.GetStreamFromString(BuildCacheData(appTypeName))); cacheFile.Save(); cacheFile = Node.Load <ApplicationCacheFile>(cacheFile.Id); return(cacheFile); }