Class AvroMessageSerializerBuilder
- Namespace
- Silverback.Messaging.Configuration
- Assembly
- Silverback.Integration.Kafka.SchemaRegistry.dll
Builds the AvroMessageSerializer<TMessage>.
public class AvroMessageSerializerBuilder : SchemaRegistrySerializerBuilder<AvroMessageSerializerBuilder>
- Inheritance
-
AvroMessageSerializerBuilder
- Inherited Members
Constructors
AvroMessageSerializerBuilder(IConfluentSchemaRegistryClientFactory)
Initializes a new instance of the AvroMessageSerializerBuilder class.
public AvroMessageSerializerBuilder(IConfluentSchemaRegistryClientFactory schemaRegistryClientFactory)
Parameters
schemaRegistryClientFactoryIConfluentSchemaRegistryClientFactoryThe IConfluentSchemaRegistryClientFactory to be used to create the schema registry client.
Properties
This
Gets the actual builder instance.
protected override AvroMessageSerializerBuilder 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<AvroSerializerConfig>)
Configures the Confluent.SchemaRegistry.Serdes.AvroSerializerConfig.
public AvroMessageSerializerBuilder Configure(Action<AvroSerializerConfig> configureAction)
Parameters
configureActionAction<AvroSerializerConfig>An Action<T> that takes the Confluent.SchemaRegistry.Serdes.AvroSerializerConfig and configures it.
Returns
- AvroMessageSerializerBuilder
The AvroMessageSerializerBuilder so that additional calls can be chained.