Method SetAvroSharpValueDeserializer
SetAvroSharpValueDeserializer<TKey, TValue>(ConsumerBuilder<TKey, TValue>, ISchemaRegistryClient, AvroSharpDeserializerConfig?, RuleRegistry?)
Reads values with an AvroSharpDeserializer<T> of TValue, which AvroTypes knows.
public static ConsumerBuilder<TKey, TValue> SetAvroSharpValueDeserializer<TKey, TValue>(this ConsumerBuilder<TKey, TValue> builder, ISchemaRegistryClient client, AvroSharpDeserializerConfig? config = null, RuleRegistry? ruleRegistry = null)
Parameters
builderConsumerBuilder<TKey, TValue>The consumer builder.
clientISchemaRegistryClientThe schema registry.
configAvroSharpDeserializerConfigThe settings, or null for the defaults.
ruleRegistryRuleRegistryThe data contract rules, or null for Confluent.SchemaRegistry.RuleRegistry.GlobalInstance.
Returns
- ConsumerBuilder<TKey, TValue>
Type Parameters
TKeyThe key type.
TValueThe value type.