Skip to content

Commit

Permalink
Try to fix azure service bus header cast exception. #483
Browse files Browse the repository at this point in the history
  • Loading branch information
yang-xiaodong committed Jan 19, 2020
1 parent 73949a4 commit 45f1d54
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ private async Task ConnectAsync()

private Task OnConsumerReceived(Message message, CancellationToken token)
{
var header = message.UserProperties.ToDictionary(x => x.Key, y => y.Value.ToString());
var header = message.UserProperties.ToDictionary(x => x.Key, y => y.Value?.ToString());

var context = new TransportMessage(header, message.Body);

Expand Down

0 comments on commit 45f1d54

Please sign in to comment.