コード例 #1
0
        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);
        }
コード例 #2
0
        Task IPublishObserver.PublishFault <T>(PublishContext <T> context, Exception exception)
        {
            MessagePerformanceCounterCache <T> .Counter(_factory).PublishFaulted();

            return(TaskUtil.Completed);
        }
コード例 #3
0
        Task IPublishObserver.PostPublish <T>(PublishContext <T> context)
        {
            MessagePerformanceCounterCache <T> .Counter(_factory).Published();

            return(TaskUtil.Completed);
        }
コード例 #4
0
        Task ISendObserver.SendFault <T>(SendContext <T> context, Exception exception)
        {
            MessagePerformanceCounterCache <T> .Counter(_factory).SendFaulted();

            return(TaskUtil.Completed);
        }
コード例 #5
0
        Task ISendObserver.PostSend <T>(SendContext <T> context)
        {
            MessagePerformanceCounterCache <T> .Counter(_factory).Sent();

            return(TaskUtil.Completed);
        }