コード例 #1
0
        Task IReceiveObserver.ConsumeFault <T>(ConsumeContext <T> context, TimeSpan elapsed, string consumerType, Exception exception)
        {
            ConsumerPerformanceCounterCache.GetCounter(consumerType).Faulted();
            MessagePerformanceCounterCache <T> .Counter.Faulted();

            return(TaskUtil.Completed);
        }
コード例 #2
0
        Task IReceiveObserver.PostConsume <T>(ConsumeContext <T> context, TimeSpan duration, string consumerType)
        {
            ConsumerPerformanceCounterCache.GetCounter(consumerType).Consumed(duration);
            MessagePerformanceCounterCache <T> .Counter.Consumed(duration);

            return(TaskUtil.Completed);
        }