コード例 #1
0
 public static void IncrementAgentDeliveryFailure(string agentName)
 {
     StoreDriverDeliveryAgentPerfCounters.InstanceEntry instanceEntry = StoreDriverDeliveryAgentPerfCounters.GetInstanceEntry(agentName);
     if (instanceEntry != null)
     {
         instanceEntry.DeliveryAgentFailuresCounter.AddNumerator(1L);
     }
 }
コード例 #2
0
 public static void RefreshAgentDeliveryPercentCounter(string agentName)
 {
     StoreDriverDeliveryAgentPerfCounters.InstanceEntry instanceEntry = StoreDriverDeliveryAgentPerfCounters.GetInstanceEntry(agentName);
     if (instanceEntry != null)
     {
         lock (MSExchangeStoreDriverDeliveryAgent.TotalInstance.DeliveryAgentFailures)
         {
             instanceEntry.PerfCounterInstance.DeliveryAgentFailures.RawValue = (long)instanceEntry.DeliveryAgentFailuresCounter.GetSlidingPercentage();
         }
     }
 }