private void ContentEvents_DeletingContent(object sender, EPiServer.DeleteContentEventArgs e) { try { var content = _contentLoader.Get <VirtualTemplateContent>(e.ContentLink); if (content != null) { _templateRepository.ResetState(); } } catch { // ignored } }
void Service_DeletedContent(object sender, EPiServer.DeleteContentEventArgs e) { VulcanHandler.Service.DeleteContentEveryLanguage(e.ContentLink); }