diff --git a/src/Foundatio.Kafka/Foundatio.Kafka.csproj b/src/Foundatio.Kafka/Foundatio.Kafka.csproj
index b6791f2..472d74c 100644
--- a/src/Foundatio.Kafka/Foundatio.Kafka.csproj
+++ b/src/Foundatio.Kafka/Foundatio.Kafka.csproj
@@ -2,7 +2,7 @@
-
+
\ No newline at end of file
diff --git a/src/Foundatio.Kafka/Messaging/KafkaMessageBus.cs b/src/Foundatio.Kafka/Messaging/KafkaMessageBus.cs
index 2c0c392..6f1e546 100644
--- a/src/Foundatio.Kafka/Messaging/KafkaMessageBus.cs
+++ b/src/Foundatio.Kafka/Messaging/KafkaMessageBus.cs
@@ -141,10 +141,10 @@ protected override async Task EnsureTopicSubscriptionAsync(CancellationToken can
}
protected virtual IMessage ConvertToMessage(string messageType, byte[] data) {
- return new Message(() => DeserializeMessageBody(messageType, data)) {
+ return new Message(DeserializeMessageBody) {
+ Data = data,
Type = messageType,
- ClrType = GetMappedMessageType(messageType),
- Data = data
+ ClrType = GetMappedMessageType(messageType)
};
}
diff --git a/tests/Directory.Build.props b/tests/Directory.Build.props
index 3baa140..25fae67 100644
--- a/tests/Directory.Build.props
+++ b/tests/Directory.Build.props
@@ -11,7 +11,7 @@
-
+
\ No newline at end of file
diff --git a/tests/Foundatio.Kafka.Tests/Messaging/KafkaMessageBusTests.cs b/tests/Foundatio.Kafka.Tests/Messaging/KafkaMessageBusTests.cs
index 7421810..29c2c56 100644
--- a/tests/Foundatio.Kafka.Tests/Messaging/KafkaMessageBusTests.cs
+++ b/tests/Foundatio.Kafka.Tests/Messaging/KafkaMessageBusTests.cs
@@ -14,7 +14,7 @@ namespace Foundatio.Kafka.Tests.Messaging;
public class KafkaMessageBusTests : KafkaMessageBusTestBase {
public KafkaMessageBusTests(ITestOutputHelper output) : base(output) { }
- [Fact]
+ [Fact(Skip = "https://github.com/confluentinc/confluent-kafka-dotnet/issues/1832")]
public override Task CanSendMessageAsync() {
return base.CanSendMessageAsync();
}