public void LogEgressMetric(long metricValue, string iotHubName, MessageRoutingStatus messageStatus, IMessage message) { switch (messageStatus) { case MessageRoutingStatus.Orphaned: Metrics.AddOrphanedMessage(metricValue, message.GetSenderId(), message.GetOutput()); break; } }
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()); } }
public void LogEgressMetric(long metricValue, string iotHubName, MessageRoutingStatus messageStatus, string messageSource) { }