예제 #1
0
 public UpgradeBatchCreatorScheduler(AnchorContext context, IOrganizationOperation orgOperationProxyInstance, WaitHandle stopEvent) : base(context, stopEvent)
 {
     this.orgOperationProxy = orgOperationProxyInstance;
     if (orgOperationProxyInstance is OrgOperationProxy)
     {
         ((OrgOperationProxy)this.orgOperationProxy).Context = context;
     }
     this.e14CountsUpdateInterval = base.Context.Config.GetConfig <TimeSpan>("E14CountUpdateInterval");
 }
예제 #2
0
 internal TenantDataCollectorScheduler(AnchorContext context, IOrganizationOperation orgOperationProxyInstance, ISymphonyProxy symphonyProxyInstance, WaitHandle stopEvent) : base(context, stopEvent)
 {
     this.ForestName = NativeHelpers.GetForestName().Split(new char[]
     {
         '.'
     })[0];
     this.orgOperationProxy = orgOperationProxyInstance;
     if (orgOperationProxyInstance is OrgOperationProxy)
     {
         ((OrgOperationProxy)this.orgOperationProxy).Context = context;
     }
     this.symphonyProxy = symphonyProxyInstance;
     if (symphonyProxyInstance is SymphonyProxy)
     {
         ((SymphonyProxy)this.symphonyProxy).WorkloadUri = new Uri(context.Config.GetConfig <Uri>("WebServiceUri"), "WorkloadService.svc");
         ((SymphonyProxy)this.symphonyProxy).Cert        = CertificateHelper.GetExchangeCertificate(context.Config.GetConfig <string>("CertificateSubject"));
     }
 }
예제 #3
0
        internal UpgradeHandlerScheduler(AnchorContext context, IOrganizationOperation orgOperationProxyInstance, ISymphonyProxy symphonyProxyInstance, WaitHandle stopEvent) : base(context, stopEvent)
        {
            string domainName = IPGlobalProperties.GetIPGlobalProperties().DomainName;

            AnchorUtil.AssertOrThrow(!string.IsNullOrEmpty(domainName), "Expect to have valid domain name set", new object[0]);
            int num = domainName.IndexOf('.');

            AnchorUtil.AssertOrThrow(num >= 0, "Expect a valid dns name {0}", new object[]
            {
                domainName
            });
            this.ForestName        = domainName.Substring(0, num);
            this.orgOperationProxy = orgOperationProxyInstance;
            if (orgOperationProxyInstance is OrgOperationProxy)
            {
                ((OrgOperationProxy)this.orgOperationProxy).Context = context;
            }
            this.symphonyProxy = symphonyProxyInstance;
            if (symphonyProxyInstance is SymphonyProxy)
            {
                ((SymphonyProxy)this.symphonyProxy).WorkloadUri = new Uri(context.Config.GetConfig <Uri>("WebServiceUri"), "WorkloadService.svc");
                ((SymphonyProxy)this.symphonyProxy).Cert        = CertificateHelper.GetExchangeCertificate(context.Config.GetConfig <string>("CertificateSubject"));
            }
        }