public void LogEgressMetric(long metricValue, string iotHubName, MessageRoutingStatus messageStatus, IMessage message)
 {
     switch (messageStatus)
     {
     case MessageRoutingStatus.Orphaned:
         Metrics.AddOrphanedMessage(metricValue, message.GetSenderId(), message.GetOutput());
         break;
     }
 }
Esempio n. 2
0
        public static string ToStringEx(this MessageRoutingStatus messageStatus)
        {
            switch (messageStatus)
            {
            case MessageRoutingStatus.Dropped:
                return(Dropped);

            case MessageRoutingStatus.Invalid:
                return(Invalid);

            case MessageRoutingStatus.Orphaned:
                return(Orphaned);

            case MessageRoutingStatus.Success:
                return(Success);

            default:
                throw new InvalidOperationException("Message Status is not supported: " + messageStatus.ToString());
            }
        }
Esempio n. 3
0
 public void LogEgressMetric(long metricValue, string iotHubName, MessageRoutingStatus messageStatus, string messageSource)
 {
 }