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