// Token: 0x06007473 RID: 29811 RVA: 0x001800CC File Offset: 0x0017E2CC protected override void UpdateCachedPolicyValues(bool resetBudgetValues) { base.UpdateCachedPolicyValues(resetBudgetValues); lock (base.SyncRoot) { this.maxConcurrency = (int)(base.ThrottlingPolicy.MaxConcurrency.IsUnlimited ? 2147483647U : base.ThrottlingPolicy.MaxConcurrency.Value); if (resetBudgetValues) { this.connections = 0; ThrottlingPerfCounterWrapper.DecrementBudgetsAtMaxConcurrency(base.Owner); } } }
// Token: 0x06007471 RID: 29809 RVA: 0x00180084 File Offset: 0x0017E284 protected override void AccountForCostHandle(CostHandle costHandle) { if (costHandle.CostType != CostType.Connection) { base.AccountForCostHandle(costHandle); return; } if (this.connections <= 0) { throw new InvalidOperationException("[StandardBudget.AccountForCostHandle] End for Connections was called, but there are no outstanding Connections."); } this.connections--; ThrottlingPerfCounterWrapper.DecrementBudgetsAtMaxConcurrency(base.Owner); }