Ejemplo n.º 1
0
 /// <summary>
 /// Saves a pageCacheIndex to cache
 /// </summary>
 /// <param name="page"></param>
 /// <param name="config"></param>
 public static async Task save( IonPage page, IonConfig config )
 {
     string url = PagesURLs.getPageURL( config, page.identifier );
     PageCacheIndex cacheIndex = new PageCacheIndex( url, page.last_changed );
     await CacheIndexStore.save<PageCacheIndex>( url, cacheIndex, config ).ConfigureAwait( false );
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Saves a pageCacheIndex to cache
 /// </summary>
 /// <param name="page"></param>
 /// <param name="config"></param>
 public static async Task save(IonPage page, IonConfig config)
 {
     string         url        = PagesURLs.getPageURL(config, page.identifier);
     PageCacheIndex cacheIndex = new PageCacheIndex(url, page.last_changed);
     await CacheIndexStore.save <PageCacheIndex>(url, cacheIndex, config).ConfigureAwait(false);
 }