private void DeleteContentLanguage(object sender, ContentEventArgs e) { Task.Run(() => { if (SiteCreationServiceBase.IsSettingUpSite()) { return; } if (LuceneConfiguration.CanIndexContent(e.Content)) { _indexingHandler.Value.ProcessRequest(new IndexRequestItem(e.Content, IndexRequestItem.REMOVE_LANGUAGE)); } }); }
private void UpdateSecurity(object sender, ContentSecurityEventArg e) { Task.Run(() => { if (SiteCreationServiceBase.IsSettingUpSite()) { return; } var content = _contentRepository.Value.Get <IContent>(e.ContentLink); if (LuceneConfiguration.CanIndexContent(content)) { _indexingHandler.Value.ProcessRequest(new IndexRequestItem(content)); } }); }