// Token: 0x06000009 RID: 9 RVA: 0x000024D3 File Offset: 0x000006D3 public static void UpdateUnauthorizedRequestsReceivedWithPartnerToken() { PerformanceCounters.SafeUpdatePerfCounter(delegate { AutodiscoverDatacenterPerformanceCounters.TotalInstance.TotalUnauthorizedRequestsReceivedWithPartnerToken.Increment(); }); }
// Token: 0x06000007 RID: 7 RVA: 0x00002460 File Offset: 0x00000660 public static void UpdateAveragePartnerInfoQueryTime(long latency) { PerformanceCounters.SafeUpdatePerfCounter(delegate { AutodiscoverDatacenterPerformanceCounters.TotalInstance.AveragePartnerInfoQueryTime.RawValue = (long)PerformanceCounters.averagePartnerInfoQueryTime.Update((float)latency); }); }
// Token: 0x06000005 RID: 5 RVA: 0x000023A5 File Offset: 0x000005A5 public static void UpdatePartnerTokenRequestsFailed(string userAgent) { PerformanceCounters.IncrementPerClientInstanceForCounter(userAgent, AutodiscoverDatacenterPerformanceCounters.TotalInstance.TotalPartnerTokenRequestsFailed, AutodiscoverDatacenterPerformanceCounters.TotalInstance.TotalPartnerTokenRequestsFailedPerTimeWindow); PerformanceCounters.SafeUpdatePerfCounter(delegate { AutodiscoverDatacenterPerformanceCounters.TotalInstance.TotalPartnerTokenRequestsFailed.Increment(); }); }
// 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(); }); } } }