Exemplo 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));
 }
Exemplo n.º 2
0
 public static T CacheInHttpContext <T>(this HttpContext context, string key, Func <T> func)
 {
     return(ServerHelper.CacheInHttpContext(key, func, context));
 }