private void MarkDivergencesUnhalting(QueryFilter filter)
        {
            IEnumerable <FailedMSOSyncObject> enumerable           = this.forwardSyncDataAccessHelper.FindDivergence(filter);
            IConfigurationSession             configurationSession = ForwardSyncDataAccessHelper.CreateSession(false);

            foreach (FailedMSOSyncObject failedMSOSyncObject in enumerable)
            {
                failedMSOSyncObject.IsIgnoredInHaltCondition = true;
                configurationSession.Save(failedMSOSyncObject);
            }
        }
        internal static ArbitrationConfigFromAD GetArbitrationConfigFromAD(string serviceInstanceName)
        {
            IConfigurationSession configurationSession = ForwardSyncDataAccessHelper.CreateSession(true);
            RidMasterInfo         ridMasterInfo        = SyncDaemonArbitrationConfigHelper.GetRidMasterInfo(configurationSession);

            SyncServiceInstance[] array = configurationSession.Find <SyncServiceInstance>(SyncServiceInstance.GetMsoSyncRootContainer(), QueryScope.SubTree, new ComparisonFilter(ComparisonOperator.Equal, ADObjectSchema.Name, serviceInstanceName), null, 1);
            if (array == null || array.Length != 1)
            {
                throw new SyncDaemonArbitrationConfigException(Strings.ErrorCannotRetrieveSyncDaemonArbitrationConfigContainer((array == null) ? "0" : array.Length.ToString()));
            }
            return(new ArbitrationConfigFromAD(array[0], ridMasterInfo));
        }
        private void MarkDivergencesHalting(QueryFilter filter)
        {
            ForwardSyncDataAccessHelper       forwardSyncDataAccessHelper = new ForwardSyncDataAccessHelper(base.DataObject.ServiceInstanceId);
            IEnumerable <FailedMSOSyncObject> enumerable           = forwardSyncDataAccessHelper.FindDivergence(filter);
            IConfigurationSession             configurationSession = ForwardSyncDataAccessHelper.CreateSession(false);

            foreach (FailedMSOSyncObject failedMSOSyncObject in enumerable)
            {
                failedMSOSyncObject.IsIgnoredInHaltCondition = false;
                configurationSession.Save(failedMSOSyncObject);
            }
        }
 protected override IConfigDataProvider CreateSession()
 {
     return(ForwardSyncDataAccessHelper.CreateSession(false));
 }
Пример #5
0
 private void InitializeSession()
 {
     this.configSession = ForwardSyncDataAccessHelper.CreateSession(false);
 }