Ejemplo n.º 1
0
        public void UpdateServiceConfig(ServiceConfig serviceConfig)
        {
            try
            {
                configurator.UpdateServiceConfig(serviceConfig);

                IntegrationWindowsService.RefreshServiceConfig();
            }
            catch (Exception ex)
            {
                SyncEngineLogger.WriteExceptionToLog(ex, WEB_SERVICE_EXCEPTION_MESSAGE);

                throw;
            }
        }
Ejemplo n.º 2
0
        public void DeleteJob(Guid jobId)
        {
            try
            {
                configurator.DeleteJob(jobId);

                IntegrationWindowsService.RefreshJobInLogger(jobId);

                scheduledJobManager.QueueScheduledJobs(clearExistingScheduledJobInstancesFromWaitingQueue: true);
            }
            catch (Exception ex)
            {
                SyncEngineLogger.WriteExceptionToLog(ex, WEB_SERVICE_EXCEPTION_MESSAGE);

                throw;
            }
        }
Ejemplo n.º 3
0
        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;
            }
        }
Ejemplo n.º 4
0
        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;
            }
        }