Example #1
0
 private string CalculateCacheKey(int?tenantId)
 {
     return(MultiTenantLocalizationDictionaryCacheHelper.CalculateCacheKey(
                tenantId,
                _sourceName,
                CultureInfo.Name
                ));
 }
 public void HandleEvent(EntityChangedEventData <ApplicationLanguageText> eventData)
 {
     _cacheManager
     .GetMultiTenantLocalizationDictionaryCache()
     .Remove(MultiTenantLocalizationDictionaryCacheHelper.CalculateCacheKey(
                 eventData.Entity.TenantId,
                 eventData.Entity.Source,
                 eventData.Entity.LanguageName)
             );
 }