Пример #1
0
        public void Handle(MessageFailed message)
        {
            var failedMessageId  = message.FailedMessageId;
            var exceptionMessage = message.FailureDetails.Exception.Message;
            var chatMessage      = $"Message with id: {failedMessageId} failed with reason: '{exceptionMessage}'. Open in ServiceInsight: {GetServiceInsightUri(failedMessageId)}";

            using (var client = new HipchatClient())
            {
                client.PostChatMessage(chatMessage);
            }
        }
        public void Handle(MessageFailed message)
        {
            string failedMessageId  = message.FailedMessageId;
            string exceptionMessage = message.FailureDetails.Exception.Message;

            string chatMessage = string.Format("Message with id: {0} failed with reason: '{1}'. Open in ServiceInsight: {2}",
                                               failedMessageId,
                                               exceptionMessage,
                                               GetServiceInsightUri(failedMessageId));

            using (HipchatClient client = new HipchatClient())
            {
                client.PostChatMessage(chatMessage);
            }
        }