예제 #1
0
        private static string GetProvisioningUrl(EdgeSyncEhfConnector connector)
        {
            Uri provisioningUrl = connector.ProvisioningUrl;

            EhfSynchronizationProvider.ValidateProvisioningUrl(provisioningUrl, connector.AuthenticationCredential, connector.DistinguishedName);
            return(provisioningUrl.AbsoluteUri);
        }
예제 #2
0
 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();
 }
예제 #3
0
 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;
 }
예제 #4
0
 public EhfRecipientTargetConnection(int localServerVersion, EhfTargetServerConfig config, EhfSynchronizationProvider provider, EdgeSyncLogSession logSession) : base(localServerVersion, config, provider.RecipientSyncInterval, logSession)
 {
     this.provider = provider;
 }