public static bool ExportUpdate(this Item item, SaveArgs.SaveItem saveItem = null) { if (item == null) { return(false); } IExportExecuter executer = MediaFrameworkContext.GetExportExecuter(item); if (executer != null && !item.ExportCreate() && (saveItem == null || executer.NeedToUpdate(saveItem))) { ExportQueueManager.Add(new ExportOperation(item, ExportOperationType.Update)); return(true); } return(false); }
public static bool ExportDelete(this Item item) { if (item == null) { return(false); } IExportExecuter executer = MediaFrameworkContext.GetExportExecuter(item); if (executer != null && !executer.IsNew(item)) { ExportQueueManager.Add(new ExportOperation(item, ExportOperationType.Delete)); return(true); } return(false); }