public static void IncrementAgentDeliveryFailure(string agentName) { StoreDriverDeliveryAgentPerfCounters.InstanceEntry instanceEntry = StoreDriverDeliveryAgentPerfCounters.GetInstanceEntry(agentName); if (instanceEntry != null) { instanceEntry.DeliveryAgentFailuresCounter.AddNumerator(1L); } }
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(); } } }