Example #1
0
 public override void ResetInstance(string instanceName)
 {
     if (PerformanceCounterMultipleInstanceWithAutoUpdateTotal.IsTotalInstanceName(instanceName))
     {
         throw new ArgumentException("You cannot reset the TotalInstance", "instanceName");
     }
     base.ResetInstance(instanceName);
 }
Example #2
0
 public override PerformanceCounterInstance GetInstance(string instanceName)
 {
     if (PerformanceCounterMultipleInstanceWithAutoUpdateTotal.IsTotalInstanceName(instanceName))
     {
         return(this.totalInstance);
     }
     return(base.GetInstance(instanceName, this.totalInstance));
 }