Esempio n. 1
0
 public static async Task <T> CacheInHttpContextAsync <T>(this HttpContext context, string key, Func <Task <T> > func)
 {
     return(await ServerHelper.CacheInHttpContextAsync(key, func, context));
 }
Esempio n. 2
0
 public static T CacheInHttpContext <T>(this HttpContext context, string key, Func <T> func)
 {
     return(ServerHelper.CacheInHttpContext(key, func, context));
 }