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