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