static internal PerformanceCounter GetEndpointPerformanceCounter(string perfCounterName, string instanceName) { return(PerformanceCounters.GetPerformanceCounter( PerformanceCounterStrings.SERVICEMODELENDPOINT.EndpointPerfCounters, perfCounterName, instanceName, PerformanceCounterInstanceLifetime.Process)); }
static internal PerformanceCounter GetDefaultPerformanceCounter(string perfCounterName, string instanceName) { return(PerformanceCounters.GetPerformanceCounter( PerformanceCounterStrings.SERVICEMODELSERVICE.ServicePerfCounters, perfCounterName, instanceName, PerformanceCounterInstanceLifetime.Global)); }
static internal PerformanceCounter GetOperationPerformanceCounter(string perfCounterName, string instanceName) { return(PerformanceCounters.GetPerformanceCounter( PerformanceCounterStrings.SERVICEMODELOPERATION.OperationPerfCounters, perfCounterName, instanceName, PerformanceCounterInstanceLifetime.Process)); }