public void DoConvert() { ServerInfo serverInfo = ServerInfoConfigSettings.GetConfig().ServerInfos["dc"].ToServerInfo(); for (int i = 0; i < ADSyncGroupSettings.GetConfig().GroupConfigurations.Count; i++) { GroupConfigurationElement element = ADSyncGroupSettings.GetConfig().GroupConfigurations[i]; AccreditHelper.SyncGroupMembers(element.SourceDN, element.DestinationPath, serverInfo); } }
public static ADSyncGroupSettings GetConfig() { ADSyncGroupSettings settings = (ADSyncGroupSettings)ConfigurationBroker.GetSection("adSyncGroupSettings"); if (settings == null) { settings = new ADSyncGroupSettings(); } return(settings); }