Skip to content

Commit

Permalink
Publish plain TypedData instead of using EncodeBinaryModeEventData. (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
pkemkes authored Aug 9, 2021
1 parent e740c84 commit 900a3d5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion shared.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project>

<PropertyGroup>
<Version>0.7.3</Version>
<Version>0.7.4</Version>
<LangVersion>9</LangVersion>
<Nullable>enable</Nullable>
<WarningsAsErrors>CS8600;CS8602;CS8625;CS8618;CS8604;CS8601</WarningsAsErrors>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,7 @@ public async Task PublishMessageAsync(MotorCloudEvent<byte[]> motorCloudEvent, C
exchange = _options.PublishingTarget.Exchange;
}

_channel.BasicPublish(exchange, routingKey, true, properties,
_cloudEventFormatter.EncodeBinaryModeEventData(motorCloudEvent.ConvertToCloudEvent()));
_channel.BasicPublish(exchange, routingKey, true, properties, motorCloudEvent.TypedData);
}

private Task StartAsync()
Expand Down

0 comments on commit 900a3d5

Please sign in to comment.