Class AvroMessageDeserializerBuilder
Builds the AvroMessageDeserializer<TMessage>.
Implements
Inherited Members
Namespace: Silverback.Messaging.Configuration
Assembly: Silverback.Integration.Kafka.SchemaRegistry.dll
Syntax
public class AvroMessageDeserializerBuilder : IAvroMessageDeserializerBuilder
Methods
| Improve this doc View sourceBuild()
Builds the IMessageSerializer instance.
Declaration
public IMessageSerializer Build()
Returns
Type | Description |
---|---|
IMessageSerializer | The IMessageSerializer. |
Configure(Action<SchemaRegistryConfig>, Action<AvroDeserializerConfig>?)
Configures the Confluent.SchemaRegistry.SchemaRegistryConfig and the Confluent.SchemaRegistry.Serdes.AvroDeserializerConfig.
Declaration
public IAvroMessageDeserializerBuilder Configure(Action<SchemaRegistryConfig> configureSchemaRegistryAction, Action<AvroDeserializerConfig>? configureDeserializerAction = null)
Parameters
Type | Name | Description |
---|---|---|
Action<SchemaRegistryConfig> | configureSchemaRegistryAction | An Action<T> that takes the Confluent.SchemaRegistry.SchemaRegistryConfig and configures it. |
Action<AvroDeserializerConfig> | configureDeserializerAction | An Action<T> that takes the Confluent.SchemaRegistry.Serdes.AvroDeserializerConfig and configures it. |
Returns
Type | Description |
---|---|
IAvroMessageDeserializerBuilder | The IAvroMessageDeserializerBuilder so that additional calls can be chained. |
UseType(Type)
Specifies the message type.
Declaration
public IAvroMessageDeserializerBuilder UseType(Type messageType)
Parameters
Type | Name | Description |
---|---|---|
Type | messageType | The type of the message to serialize or deserialize. |
Returns
Type | Description |
---|---|
IAvroMessageDeserializerBuilder | The IAvroMessageDeserializerBuilder so that additional calls can be chained. |
UseType<TMessage>()
Specifies the message type.
Declaration
public IAvroMessageDeserializerBuilder UseType<TMessage>() where TMessage : class
Returns
Type | Description |
---|---|
IAvroMessageDeserializerBuilder | The IAvroMessageDeserializerBuilder so that additional calls can be chained. |
Type Parameters
Name | Description |
---|---|
TMessage | The type of the message to serialize or deserialize. |