Class ConsumerEndpointBuilderDeserializeAvroExtensions
Adds the DeserializeAvro
method to the
ConsumerEndpointBuilder<TEndpoint, TBuilder>.
Inherited Members
Namespace: Silverback.Messaging.Configuration
Assembly: Silverback.Integration.Kafka.SchemaRegistry.dll
Syntax
public static class ConsumerEndpointBuilderDeserializeAvroExtensions
Methods
| Improve this doc View sourceDeserializeAvro<TBuilder>(IConsumerEndpointBuilder<TBuilder>, Action<IAvroMessageDeserializerBuilder>?)
Sets the serializer to an instance of AvroMessageSerializer<TMessage> to deserialize the consumed Avro serialized message.
Declaration
public static TBuilder DeserializeAvro<TBuilder>(this IConsumerEndpointBuilder<TBuilder> endpointBuilder, Action<IAvroMessageDeserializerBuilder>? deserializerBuilderAction = null) where TBuilder : IConsumerEndpointBuilder<TBuilder>
Parameters
Type | Name | Description |
---|---|---|
IConsumerEndpointBuilder<TBuilder> | endpointBuilder | The endpoint builder. |
Action<IAvroMessageDeserializerBuilder> | deserializerBuilderAction | An optional Action<T> that takes the IAvroMessageSerializerBuilder and configures it. |
Returns
Type | Description |
---|---|
TBuilder | The endpoint builder so that additional calls can be chained. |
Type Parameters
Name | Description |
---|---|
TBuilder | The actual builder type. |