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