Class ProtobufMessageSerializerBuilder
- Namespace
- Silverback.Messaging.Configuration
- Assembly
- Silverback.Integration.Kafka.SchemaRegistry.dll
Builds the ProtobufMessageSerializer<TMessage>.
public class ProtobufMessageSerializerBuilder : SchemaRegistrySerializerBuilder<ProtobufMessageSerializerBuilder>
- Inheritance
-
ProtobufMessageSerializerBuilder
- Inherited Members
Constructors
ProtobufMessageSerializerBuilder(IConfluentSchemaRegistryClientFactory)
Initializes a new instance of the ProtobufMessageSerializerBuilder class.
public ProtobufMessageSerializerBuilder(IConfluentSchemaRegistryClientFactory schemaRegistryClientFactory)
Parameters
schemaRegistryClientFactoryIConfluentSchemaRegistryClientFactoryThe IConfluentSchemaRegistryClientFactory to be used to create the schema registry client.
Properties
This
Gets the actual builder instance.
protected override ProtobufMessageSerializerBuilder This { get; }
Property Value
Methods
BuildCore(Type, ISchemaRegistryClient)
Builds the IMessageSerializer instance.
protected override IMessageSerializer BuildCore(Type messageType, ISchemaRegistryClient schemaRegistryClient)
Parameters
messageTypeTypeThe type of the message to serialize.
schemaRegistryClientISchemaRegistryClientThe schema registry client.
Returns
Configure(Action<ProtobufSerializerConfig>)
Configures the Confluent.SchemaRegistry.Serdes.ProtobufSerializerConfig.
public ProtobufMessageSerializerBuilder Configure(Action<ProtobufSerializerConfig> configureAction)
Parameters
configureActionAction<ProtobufSerializerConfig>An Action<T> that takes the Confluent.SchemaRegistry.Serdes.ProtobufSerializerConfig and configures it.
Returns
- ProtobufMessageSerializerBuilder
The ProtobufMessageSerializerBuilder so that additional calls can be chained.