Ejemplo n.º 1
0
 public static IViewComponentResult GetCulturesViewComponentResultWithDefaultValue(this ICache cache, Func <IViewComponentResult> defaultValueFunc)
 {
     return(cache.GetWithDefaultValue(
                ICacheExtensions.GetCulturesViewComponentResultKey(), defaultValueFunc
                ));
 }
Ejemplo n.º 2
0
 public static void RemoveCulturesViewComponentResult(this ICache cache, string code, string cultureCode)
 {
     cache.Remove(ICacheExtensions.GetCulturesViewComponentResultKey());
 }
Ejemplo n.º 3
0
 public static IViewComponentResult GetCulturesViewComponentResultWithDefaultValue(this ICache cache, string additionalCssClass, Func <IViewComponentResult> defaultValueFunc)
 {
     return(cache.GetWithDefaultValue(
                ICacheExtensions.GetCulturesViewComponentResultKey(additionalCssClass), defaultValueFunc
                ));
 }