private static string GetProvisioningUrl(EdgeSyncEhfConnector connector) { Uri provisioningUrl = connector.ProvisioningUrl; EhfSynchronizationProvider.ValidateProvisioningUrl(provisioningUrl, connector.AuthenticationCredential, connector.DistinguishedName); return(provisioningUrl.AbsoluteUri); }
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; }