Class ProtobufMessageSerializer<TMessage>
- Namespace
- Silverback.Messaging.Serialization
- Assembly
- Silverback.Integration.Kafka.SchemaRegistry.dll
Connects to the specified schema registry and serializes the messages in Protobuf format.
public class ProtobufMessageSerializer<TMessage> : SchemaRegistryMessageSerializer<TMessage>, IMessageSerializer where TMessage : class, IMessage<TMessage>, new()
Type Parameters
TMessageThe type of the messages to be serialized.
- Inheritance
-
SchemaRegistryMessageSerializer<TMessage>ProtobufMessageSerializer<TMessage>
- Implements
- Inherited Members
Constructors
ProtobufMessageSerializer(ISchemaRegistryClient, ProtobufSerializerConfig?)
Initializes a new instance of the ProtobufMessageSerializer<TMessage> class.
public ProtobufMessageSerializer(ISchemaRegistryClient schemaRegistryClient, ProtobufSerializerConfig? protobufSerializerConfig = null)
Parameters
schemaRegistryClientISchemaRegistryClientThe schema registry client.
protobufSerializerConfigProtobufSerializerConfigThe Confluent.SchemaRegistry.Serdes.ProtobufSerializer<T> configuration.
Properties
ProtobufSerializerConfig
Gets the Confluent.SchemaRegistry.Serdes.ProtobufSerializer<T> configuration.
public ProtobufSerializerConfig? ProtobufSerializerConfig { get; }
Property Value
- ProtobufSerializerConfig