Table of Contents

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

TMessage

The type of the messages to be serialized.

Inheritance
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

schemaRegistryClient ISchemaRegistryClient

The schema registry client.

protobufSerializerConfig ProtobufSerializerConfig

The Confluent.SchemaRegistry.Serdes.ProtobufSerializer<T> configuration.

Properties

ProtobufSerializerConfig

Gets the Confluent.SchemaRegistry.Serdes.ProtobufSerializer<T> configuration.

public ProtobufSerializerConfig? ProtobufSerializerConfig { get; }

Property Value

ProtobufSerializerConfig