// Token: 0x060073E0 RID: 29664 RVA: 0x0017DC20 File Offset: 0x0017BE20 public CostHandle StartCmdlet(string cmdLetName, Action <CostHandle> onRelease) { ExTraceGlobals.ClientThrottlingTracer.TraceDebug <BudgetKey, string>((long)this.GetHashCode(), "[PowerShellBudget.StartCmdlet] Start called for user {0}, cmdlet: {1}", base.Owner, cmdLetName); this.Update(); if (this.IsCmdletPerTimePeriodEnabled()) { Interlocked.Decrement(ref this.cmdletsRemaining); } if (this.IsExchangeCmdletPerTimePeriodEnabled()) { Interlocked.Decrement(ref this.exchangeCmdletsRemaining); } if (this.IsDestructiveCmdletPerTimePeriodEnabled() && !string.IsNullOrEmpty(cmdLetName) && PowerShellBudget.DestructiveCmdlets.Contains(cmdLetName.ToLower())) { Interlocked.Decrement(ref this.destructiveCmdletsRemaining); } ThrottlingPerfCounterWrapper.IncrementExchangeExecutingCmdlets(); return(new CostHandle(this, CostType.CMDLET, onRelease, string.Format("PowerShellBudgetCache.StartCmdlet.{0}", cmdLetName), default(TimeSpan))); }