Task IReceiveObserver.ConsumeFault <T>(ConsumeContext <T> context, TimeSpan duration, string consumerType, Exception exception) { ConsumerPerformanceCounterCache.GetCounter(_factory, consumerType).Faulted(); MessagePerformanceCounterCache <T> .Counter(_factory).ConsumeFaulted(duration); return(TaskUtil.Completed); }
Task IPublishObserver.PublishFault <T>(PublishContext <T> context, Exception exception) { MessagePerformanceCounterCache <T> .Counter(_factory).PublishFaulted(); return(TaskUtil.Completed); }
Task IPublishObserver.PostPublish <T>(PublishContext <T> context) { MessagePerformanceCounterCache <T> .Counter(_factory).Published(); return(TaskUtil.Completed); }
Task ISendObserver.SendFault <T>(SendContext <T> context, Exception exception) { MessagePerformanceCounterCache <T> .Counter(_factory).SendFaulted(); return(TaskUtil.Completed); }
Task ISendObserver.PostSend <T>(SendContext <T> context) { MessagePerformanceCounterCache <T> .Counter(_factory).Sent(); return(TaskUtil.Completed); }