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