Method SetAvroSharpKeyDeserializer
SetAvroSharpKeyDeserializer<TKey, TValue>(ConsumerBuilder<TKey, TValue>, ISchemaRegistryClient, AvroSharpDeserializerConfig?, RuleRegistry?)
Reads keys with an AvroSharpDeserializer<T> of TKey, which AvroTypes knows.
public static ConsumerBuilder<TKey, TValue> SetAvroSharpKeyDeserializer<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.