Interface IAvroMessageDeserializerBuilder
Builds the AvroMessageDeserializer<TMessage>.
Namespace: Silverback.Messaging.Configuration
Assembly: Silverback.Integration.Kafka.SchemaRegistry.dll
Syntax
public interface IAvroMessageDeserializerBuilder
Methods
| Improve this doc View sourceConfigure(Action<SchemaRegistryConfig>, Action<AvroDeserializerConfig>?)
Configures the Confluent.SchemaRegistry.SchemaRegistryConfig and the Confluent.SchemaRegistry.Serdes.AvroDeserializerConfig.
Declaration
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
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
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. |