public void UpdateIntegration(IntegrationDefinition integrationDefinition) { try { configurator.UpdateIntegration(integrationDefinition); IntegrationWindowsService.RefreshIntegrationInLogger(integrationDefinition.Id); scheduledJobManager.QueueScheduledJobs(clearExistingScheduledJobInstancesFromWaitingQueue: true); } catch (Exception ex) { SyncEngineLogger.WriteExceptionToLog(ex, WEB_SERVICE_EXCEPTION_MESSAGE); throw; } }
public void DeleteIntegration(Guid integrationId, bool deleteHistory) { try { configurator.DeleteIntegration(integrationId, false); IntegrationWindowsService.RefreshIntegrationInLogger(integrationId); scheduledJobManager.QueueScheduledJobs(clearExistingScheduledJobInstancesFromWaitingQueue: true); SyncEngineLogger.DeleteAllIntegrationHistory(integrationId); } catch (Exception ex) { SyncEngineLogger.WriteExceptionToLog(ex, WEB_SERVICE_EXCEPTION_MESSAGE); throw; } }