示例#1
0
 static void Template_AfterDelete(global::umbraco.cms.businesslogic.template.Template sender, global::umbraco.cms.businesslogic.DeleteEventArgs e)
 {
     if (!uSync.EventsPaused)
     {
         LogHelper.Info <uSync>("Template after delete");
         XmlDoc.ArchiveFile("Template", XmlDoc.ScrubFile(sender.Alias));
     }
 }
示例#2
0
 static void DataTypeService_Deleted(IDataTypeService sender, Umbraco.Core.Events.DeleteEventArgs <IDataTypeDefinition> e)
 {
     if (!uSync.EventsPaused)
     {
         foreach (var item in e.DeletedEntities)
         {
             XmlDoc.ArchiveFile("DataTypeDefinition", XmlDoc.ScrubFile(item.Name));
         }
     }
 }
 static void MacroService_Deleted(IMacroService sender, Umbraco.Core.Events.DeleteEventArgs <IMacro> e)
 {
     if (!uSync.EventsPaused)
     {
         foreach (var macro in e.DeletedEntities)
         {
             XmlDoc.ArchiveFile("Macro", XmlDoc.ScrubFile(macro.Alias));
         }
     }
 }
示例#4
0
 static void FileService_DeletedTemplate(IFileService sender, Umbraco.Core.Events.DeleteEventArgs <ITemplate> e)
 {
     if (!uSync.EventsPaused)
     {
         foreach (var item in e.DeletedEntities)
         {
             XmlDoc.ArchiveFile("Template", XmlDoc.ScrubFile(item.Alias));
         }
     }
 }