void Document_BeforeDelete(Document doc, DeleteEventArgs e) { #if !DEBUG try #endif { UrlTrackerRepository.DeleteUrlTrackerEntriesByNodeId(doc.Id); } #if !DEBUG catch (Exception ex) { ex.LogException(doc.Id); } #endif }
void ContentService_Deleting(IContentService sender, DeleteEventArgs <IContent> e) { foreach (IContent content in e.DeletedEntities) { #if !DEBUG try #endif { UrlTrackerRepository.DeleteUrlTrackerEntriesByNodeId(content.Id); } #if !DEBUG catch (Exception ex) { ex.LogException(); } #endif } }