// Token: 0x06000003 RID: 3 RVA: 0x00002318 File Offset: 0x00000518 public static void UpdateTotalRequests(bool error) { PerformanceCounters.SafeUpdatePerfCounter(delegate { AutodiscoverPerformanceCounters.TotalRequests.Increment(); if (error) { AutodiscoverPerformanceCounters.TotalErrorResponses.Increment(); } }); }
// Token: 0x0600000B RID: 11 RVA: 0x0000259C File Offset: 0x0000079C private static void IncrementPerClientInstanceForCounter(string userAgent, ExPerformanceCounter counter, ExPerformanceCounter associatedWindowCounter) { if (!string.IsNullOrEmpty(userAgent)) { string client = userAgent.Split(new char[] { '/' })[0]; if (!string.IsNullOrEmpty(client) && PerformanceCounters.trustedClientsList.Contains(client.ToLower())) { PerformanceCounters.EnsurePerClientPerfCounterInstancesExist(client, counter, associatedWindowCounter); PerformanceCounters.SafeUpdatePerfCounter(delegate { PerformanceCounters.perClientInstanceTotalCounters[client + "_" + counter.CounterName].Increment(); }); } } }