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)