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);
         }
     }
 }
Esempio n. 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");
        }
Esempio n. 3
0
 // Token: 0x06000033 RID: 51 RVA: 0x000029FB File Offset: 0x00000BFB
 internal BatchCreatorScheduler(AnchorContext context, WaitHandle stopEvent) : this(context, stopEvent, LoadBalanceServiceAdapter.Create(context.Logger))
 {
 }