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));
 }