Skip to content

Commit

Permalink
Fix bug where module client send batch fails if output name already set
Browse files Browse the repository at this point in the history
  • Loading branch information
timtay-microsoft committed Mar 13, 2024
1 parent 9e445ce commit 12dd02a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iothub/device/src/InternalClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1570,7 +1570,7 @@ public Task SendEventBatchAsync(string outputName, IEnumerable<Message> messages
throw new ArgumentNullException(nameof(messages));
}

messagesList.ForEach(m => m.SystemProperties.Add(MessageSystemPropertyNames.OutputName, outputName));
messagesList.ForEach(m => m.SystemProperties[MessageSystemPropertyNames.OutputName] = outputName);

return InnerHandler.SendEventAsync(messagesList, cancellationToken);
}
Expand Down

0 comments on commit 12dd02a

Please sign in to comment.