// Token: 0x060073EA RID: 29674 RVA: 0x0017E354 File Offset: 0x0017C554 public string GetCmdletBudgetUsage() { string result; lock (base.SyncRoot) { if (this.cmdletsRemaining == 9223372036854775807L && this.destructiveCmdletsRemaining == 9223372036854775807L && base.CasTokenBucket is UnthrottledTokenBucket) { result = null; } else { result = string.Format("ExchangeCmdlet:{0}/{1}/{2} DestructiveCmdlet:{3}/{4}/{5} Balance:{6}/{7}/{8}", new object[] { PowerShellBudget.GetUserFriendlyLongValue(this.exchangeCmdletsRemaining), this.exchangeMaxCmdletsPolicyValue, this.powerShellMaxCmdletsTimePeriodPolicyValue, PowerShellBudget.GetUserFriendlyLongValue(this.destructiveCmdletsRemaining), this.powerShellMaxDestructiveCmdletsPolicyValue, this.powerShellMaxDestructiveCmdletsTimePeriodPolicyValue, base.GetBalanceForTrace(), base.CasTokenBucket.RechargeRate, base.CasTokenBucket.MinimumBalance }); } } return(result); }
// Token: 0x060073E9 RID: 29673 RVA: 0x0017E260 File Offset: 0x0017C460 public string GetWSManBudgetUsage() { string result; lock (base.SyncRoot) { if (this.activeRunspaces == 2147483647 && this.runspacesRemaining == 9223372036854775807L && this.cmdletsRemaining == 9223372036854775807L) { result = null; } else { result = string.Format("Concurrency:{0}/{1} RunSpaces:{2}/{3}/{4} PowerShellCmdlet:{5}/{6}/{7}", new object[] { this.activeRunspaces, this.activeRunspacesPolicyValue, PowerShellBudget.GetUserFriendlyLongValue(this.runspacesRemaining), this.powerShellMaxRunspacesPolicyValue, this.powerShellMaxRunspacesTimePeriodPolicyValue, PowerShellBudget.GetUserFriendlyLongValue(this.cmdletsRemaining), this.powerShellMaxCmdletsPolicyValue, this.powerShellMaxCmdletsTimePeriodPolicyValue }); } } return(result); }