From 900a3d52825027a66d2acdc7fe64f46574cb5498 Mon Sep 17 00:00:00 2001 From: Phillip Kemkes <49593636+pkemkes@users.noreply.github.com> Date: Mon, 9 Aug 2021 08:05:36 +0200 Subject: [PATCH] Publish plain TypedData instead of using EncodeBinaryModeEventData. (#286) --- shared.csproj | 2 +- .../RabbitMQMessagePublisher.cs | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/shared.csproj b/shared.csproj index ed6915d3..4bacbb92 100644 --- a/shared.csproj +++ b/shared.csproj @@ -1,7 +1,7 @@ - 0.7.3 + 0.7.4 9 enable CS8600;CS8602;CS8625;CS8618;CS8604;CS8601 diff --git a/src/Motor.Extensions.Hosting.RabbitMQ/RabbitMQMessagePublisher.cs b/src/Motor.Extensions.Hosting.RabbitMQ/RabbitMQMessagePublisher.cs index 962dc575..a32bd981 100644 --- a/src/Motor.Extensions.Hosting.RabbitMQ/RabbitMQMessagePublisher.cs +++ b/src/Motor.Extensions.Hosting.RabbitMQ/RabbitMQMessagePublisher.cs @@ -55,8 +55,7 @@ public async Task PublishMessageAsync(MotorCloudEvent 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()