Method SetAvroSharpGenericValueDeserializer
SetAvroSharpGenericValueDeserializer<TKey>(ConsumerBuilder<TKey, AvroValue>, ISchemaRegistryClient, AvroSchema?, AvroSharpDeserializerConfig?, RuleRegistry?)
Reads generic values (AvroValue): each message in its writer's schema, or resolved to
readerSchema (CreateDeserializer(ISchemaRegistryClient, AvroSchema?, AvroSharpDeserializerConfig?, RuleRegistry?)).
public static ConsumerBuilder<TKey, AvroValue> SetAvroSharpGenericValueDeserializer<TKey>(this ConsumerBuilder<TKey, AvroValue> builder, ISchemaRegistryClient client, AvroSchema? readerSchema = null, AvroSharpDeserializerConfig? config = null, RuleRegistry? ruleRegistry = null)
Parameters
builderConsumerBuilder<TKey, AvroValue>The consumer builder.
clientISchemaRegistryClientThe schema registry.
readerSchemaAvroSchemaThe schema to read every message as, or null to read each as written.
configAvroSharpDeserializerConfigThe settings, or null for the defaults.
ruleRegistryRuleRegistryThe data contract rules, or null for Confluent.SchemaRegistry.RuleRegistry.GlobalInstance.
Returns
- ConsumerBuilder<TKey, AvroValue>
Type Parameters
TKeyThe key type.