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