示例#1
0
 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;
 }
示例#2
0
        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);
        }