GetCounter() public static method

public static GetCounter ( ICounterFactory factory, string consumerType ) : IConsumerPerformanceCounter
factory ICounterFactory
consumerType string
return IConsumerPerformanceCounter
        Task IReceiveObserver.ConsumeFault <T>(ConsumeContext <T> context, TimeSpan elapsed, string consumerType, Exception exception)
        {
            ConsumerPerformanceCounterCache.GetCounter(consumerType).Faulted();
            MessagePerformanceCounterCache <T> .Counter.Faulted();

            return(TaskUtil.Completed);
        }
        Task IReceiveObserver.PostConsume <T>(ConsumeContext <T> context, TimeSpan duration, string consumerType)
        {
            ConsumerPerformanceCounterCache.GetCounter(consumerType).Consumed(duration);
            MessagePerformanceCounterCache <T> .Counter.Consumed(duration);

            return(TaskUtil.Completed);
        }