示例#1
0
        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)
 {
 }
示例#4
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();
 }
示例#5
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;
 }
示例#6
0
 public EhfRecipientTargetConnection(int localServerVersion, EhfTargetServerConfig config, EhfSynchronizationProvider provider, EdgeSyncLogSession logSession) : base(localServerVersion, config, provider.RecipientSyncInterval, logSession)
 {
     this.provider = provider;
 }
示例#7
0
 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;
 }
示例#8
0
 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");
 }