From 6448b847099001af2af749cf7cf047cc781cb4a6 Mon Sep 17 00:00:00 2001 From: Daniel Blankensteiner Date: Wed, 17 Jul 2024 09:02:41 +0200 Subject: [PATCH] Let's see if this fixes the bug in protobuf-net --- src/DotPulsar/Internal/Serializer.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/DotPulsar/Internal/Serializer.cs b/src/DotPulsar/Internal/Serializer.cs index 7be7e64ee..542f7000d 100644 --- a/src/DotPulsar/Internal/Serializer.cs +++ b/src/DotPulsar/Internal/Serializer.cs @@ -19,6 +19,8 @@ namespace DotPulsar.Internal; public static class Serializer { + static Serializer() => Serialize(new BaseCommand()); //Let's see if this fixes the bug in protobuf-net + public static T Deserialize(ReadOnlySequence sequence) => ProtoBuf.Serializer.Deserialize(sequence); public static ReadOnlySequence Serialize(BaseCommand command)