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