예제 #1
0
        public Dictionary <string, string> GetExtendedProperties(SyncObjectType objectType, Guid objectId)
        {
            try
            {
                return(configurator.GetExtendedProperties(objectType, objectId));
            }
            catch (Exception ex)
            {
                SyncEngineLogger.WriteExceptionToLog(ex, WEB_SERVICE_EXCEPTION_MESSAGE);

                throw;
            }
        }
예제 #2
0
        public string GetExtendedProperty(SyncObjectType objectType, Guid objectId, string key)
        {
            try
            {
                return(configurator.GetExtendedProperty(objectType, objectId, key));
            }
            catch (Exception ex)
            {
                SyncEngineLogger.WriteExceptionToLog(ex, WEB_SERVICE_EXCEPTION_MESSAGE);

                throw;
            }
        }
예제 #3
0
        public void SyncExtendedPropertyChanges(SyncObjectType objectType, Guid objectId, Dictionary <string, string> extendedPropertiesToApply)
        {
            try
            {
                configurator.SyncExtendedPropertyChanges(objectType, objectId, extendedPropertiesToApply);

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

                throw;
            }
        }
예제 #4
0
        public void DeleteAllExtendedProperties(SyncObjectType objectType, Guid objectId)
        {
            try
            {
                configurator.DeleteAllExtendedProperties(objectType, objectId);

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

                throw;
            }
        }
예제 #5
0
        public int AddExtendedProperty(SyncObjectType objectType, Guid objectId, string key, string value)
        {
            try
            {
                var extendedPropertyId = configurator.AddExtendedProperty(objectType, objectId, key, value);

                scheduledJobManager.QueueScheduledJobs(clearExistingScheduledJobInstancesFromWaitingQueue: true);

                return(extendedPropertyId);
            }
            catch (Exception ex)
            {
                SyncEngineLogger.WriteExceptionToLog(ex, WEB_SERVICE_EXCEPTION_MESSAGE);

                throw;
            }
        }