private void InitializeTargetServerConfig(EdgeSyncEhfConnector connector) { EhfTargetServerConfig ehfTargetServerConfig = new EhfTargetServerConfig(connector, EdgeSyncSvc.EdgeSync.Topology.LocalServer.InternetWebProxy); this.targetServerConfigs = new List <TargetServerConfig>(1); this.targetServerConfigs.Add(ehfTargetServerConfig); this.ehfWebServiceVersion = ehfTargetServerConfig.EhfWebServiceVersion; this.adminSyncInterval = ehfTargetServerConfig.EhfSyncAppConfig.EhfAdminSyncInterval; this.adminSyncErrorTracker.Initialize(ehfTargetServerConfig.EhfSyncAppConfig); EhfSynchronizationProvider.tracer.TraceDebug((long)this.GetHashCode(), "Initialized target server configuration for connector: <{0}> ProvisioningUrl: <{1}> PrimaryLeaseLocation: <{2}> BackupLeaseLocation: <{3}> Version: <{4}>", new object[] { ehfTargetServerConfig.Name, ehfTargetServerConfig.ProvisioningUrl, ehfTargetServerConfig.PrimaryLeaseLocation, ehfTargetServerConfig.BackupLeaseLocation, connector.Version }); }
public EhfConfigTargetConnection(int localServerVersion, EhfTargetServerConfig config, EdgeSyncLogSession logSession, EhfPerfCounterHandler perfCounterHandler, IProvisioningService provisioningService, IManagementService managementService, EhfADAdapter adapter, EnhancedTimeSpan syncInterval) : base(localServerVersion, config, logSession, perfCounterHandler, provisioningService, managementService, null, adapter, syncInterval) { }
public EhfConfigTargetConnection(int localServerVersion, EhfTargetServerConfig config, EnhancedTimeSpan syncInterval, EdgeSyncLogSession logSession) : base(localServerVersion, config, syncInterval, logSession) { }
public EhfTargetServerConfig(EdgeSyncEhfConnector connector, Uri internetWebProxy) : base(connector.Name, EhfTargetServerConfig.GetProvisioningUrl(connector), connector.PrimaryLeaseLocation, connector.BackupLeaseLocation) { this.internetWebProxy = internetWebProxy; this.userName = null; this.password = null; if (connector.AuthenticationCredential != null) { this.userName = connector.AuthenticationCredential.UserName; this.password = connector.AuthenticationCredential.Password; } this.version = connector.Version; this.adminSyncEnabled = connector.AdminSyncEnabled; this.resellerId = EhfSynchronizationProvider.GetResellerId(connector); this.ehfSyncAppConfig = new EhfSyncAppConfig(); }
public EhfRecipientTargetConnection(int localServerVersion, EhfTargetServerConfig config, EdgeSyncLogSession logSession, EhfPerfCounterHandler perfCounterHandler, IAdminSyncService adminSyncservice, EhfADAdapter adapter, EnhancedTimeSpan syncInterval, EhfSynchronizationProvider provider) : base(localServerVersion, config, logSession, perfCounterHandler, null, null, adminSyncservice, adapter, syncInterval) { this.provider = provider; }
public EhfRecipientTargetConnection(int localServerVersion, EhfTargetServerConfig config, EhfSynchronizationProvider provider, EdgeSyncLogSession logSession) : base(localServerVersion, config, provider.RecipientSyncInterval, logSession) { this.provider = provider; }
public EhfTargetConnection(int localServerVersion, EhfTargetServerConfig config, EdgeSyncLogSession logSession, EhfPerfCounterHandler perfCounterHandler, IProvisioningService provisioningService, IManagementService managementService, IAdminSyncService adminSyncService, EhfADAdapter adapter, EnhancedTimeSpan syncInterval) : this(localServerVersion, config, syncInterval, logSession) { this.provisioningService = new EhfProvisioningService(provisioningService, managementService, adminSyncService); this.adapter = adapter; this.perfCounterHandler = perfCounterHandler; }
public EhfTargetConnection(int localServerVersion, EhfTargetServerConfig config, EnhancedTimeSpan syncInterval, EdgeSyncLogSession logSession) : base(localServerVersion, config, syncInterval, logSession, ExTraceGlobals.TargetConnectionTracer) { this.config = config; this.configSession = DirectorySessionFactory.Default.GetTenantOrTopologyConfigurationSession(false, ConsistencyMode.IgnoreInvalid, ADSessionSettings.FromRootOrgScopeSet(), 104, ".ctor", "f:\\15.00.1497\\sources\\dev\\EdgeSync\\src\\EHF\\EhfTargetConnection.cs"); }