// Token: 0x06001813 RID: 6163
 // RVA: 0x00074C64 File Offset: 0x00072E64
 public STPInstancePerformanceCounter(string string_0, STPPerformanceCounterType stpperformanceCounterType_0)
     : this()
 {
     STPPerformanceCounters instance = STPPerformanceCounters.Instance;
     this._pcs = new PerformanceCounter("SmartThreadPool", instance._stpPerformanceCounters[(int)stpperformanceCounterType_0].Name, string_0, false);
     this._pcs.RawValue = this._pcs.RawValue;
 }
Exemple #2
0
        public STPInstancePerformanceCounter(string instance, STPPerformanceCounterType spcType)
        {
            STPPerformanceCounters counters = STPPerformanceCounters.Instance;

            this._pcs          = new PerformanceCounter("SmartThreadPool", counters._stpPerformanceCounters[(int)spcType].Name, instance, false);
            this._pcs.RawValue = this._pcs.RawValue;
        }
        public STPInstancePerformanceCounter(
            string instance,
            STPPerformanceCounterType spcType)
        {
            STPPerformanceCounters counters = STPPerformanceCounters.Instance;

            _pcs = new PerformanceCounter(
                STPPerformanceCounters._stpCategoryName,
                counters._stpPerformanceCounters[(int)spcType].Name,
                instance,
                false);
            _pcs.RawValue = _pcs.RawValue;
        }
 private STPInstancePerformanceCounter GetCounter(STPPerformanceCounterType spcType)
 {
     return _pcs[(int) spcType];
 }
 public STPInstancePerformanceCounter(
     string instance,
     STPPerformanceCounterType spcType)
     : this()
 {
     STPPerformanceCounters counters = STPPerformanceCounters.Instance;
     _pcs = new PerformanceCounter(
         STPPerformanceCounters._stpCategoryName,
         counters._stpPerformanceCounters[(int) spcType].Name,
         instance,
         false);
     _pcs.RawValue = _pcs.RawValue;
 }
 private STPInstancePerformanceCounter GetCounter(STPPerformanceCounterType spcType)
 {
     return(this._pcs[(int)spcType]);
 }
 // Token: 0x06001823 RID: 6179
 // RVA: 0x00014CAC File Offset: 0x00012EAC
 private STPInstancePerformanceCounter GetCounter(STPPerformanceCounterType stpperformanceCounterType_0)
 {
     return this._pcs[(int)stpperformanceCounterType_0];
 }