Пример #1
0
 protected override void InternalProcessRecord()
 {
     using (LoadBalanceAnchorContext loadBalanceAnchorContext = new LoadBalanceAnchorContext())
     {
         using (CmdletLogAdapter cmdletLogAdapter = new CmdletLogAdapter(loadBalanceAnchorContext.Logger, new Action <LocalizedString>(base.WriteVerbose), new Action <LocalizedString>(this.WriteWarning), new Action <LocalizedString>(base.WriteDebug)))
         {
             ILoadBalanceServicePort loadBalanceServicePort = LoadBalanceServiceAdapter.Create(cmdletLogAdapter);
             CapacitySummary         capacitySummary        = loadBalanceServicePort.GetCapacitySummary(this.objectIdentity, this.Refresh);
             base.WriteObject(capacitySummary);
         }
     }
 }
Пример #2
0
        protected override IConfigurable PrepareDataObject()
        {
            TaskLogger.LogEnter();
            if (base.Fields.IsModified("Database"))
            {
                ADObjectId value = this.ResolveDatabaseParameterId((DatabaseIdParameter)base.Fields["Database"]);
                base.Fields[ADMailboxRecipientSchema.Database] = value;
            }
            else
            {
                ILoadBalanceServicePort loadBalanceServicePort = LoadBalanceServiceAdapter.Create(NullAnchorLogger.Instance);
                base.Fields[ADMailboxRecipientSchema.Database] = loadBalanceServicePort.GetDatabaseForNewConsumerMailbox();
            }
            if (this.WindowsLiveID.NetId != null)
            {
                base.Fields[ADUserSchema.NetID] = this.WindowsLiveID.NetId;
                TaskLogger.LogExit();
                return(null);
            }
            SmtpAddress smtpAddress = this.WindowsLiveID.SmtpAddress;

            throw new NotImplementedException("See OfficeMain bug# 1505962");
        }
Пример #3
0
 // Token: 0x06000034 RID: 52 RVA: 0x00002A10 File Offset: 0x00000C10
 protected BatchCreatorScheduler(AnchorContext context, WaitHandle stopEvent, ILoadBalanceServicePort loadBalanceClient) : base(context, stopEvent)
 {
     this.MailboxCache      = new BatchCreatorScheduler.MigrationMailboxCache(context);
     this.OccupantCreators  = new Dictionary <MigrationOccupantType, BatchCreatorScheduler.OccupantCreator>();
     this.LoadBalanceClient = loadBalanceClient;
 }