public PerformanceCounter Get(BasePerfMonAppender pma) { if (pma == null) { throw new ArgumentNullException("pma"); } var counter = new PerformanceCounter(pma.Category, Name, pma.InstanceName, false); counter.RawValue = 0; // Initialize & create instance, see MSDN return(counter); }
public void Set(BasePerfMonAppender pma) { setter(pma, this); }
public PerformanceCounter Get(BasePerfMonAppender pma) { if (pma == null) throw new ArgumentNullException("pma"); var counter = new PerformanceCounter(pma.Category, Name, pma.InstanceName, false); counter.RawValue = 0; // Initialize & create instance, see MSDN return counter; }