Method CreateDeserializer
CreateDeserializer(ISchemaRegistryClient, AvroSchema?, AvroSharpDeserializerConfig?, RuleRegistry?)
Creates a deserializer of generic values: each message as its writer's schema, or resolved to
readerSchema when one is given. Without one, and with use.latest.version or
use.latest.with.metadata, each message is resolved to the subject's latest schema, as Confluent's generic
deserializer reads.
public static AvroSharpDeserializer<AvroValue> CreateDeserializer(ISchemaRegistryClient client, AvroSchema? readerSchema = null, AvroSharpDeserializerConfig? config = null, RuleRegistry? ruleRegistry = null)
Parameters
clientISchemaRegistryClientThe schema registry.
readerSchemaAvroSchemaThe schema to read every message as, or null to read each as written (or as the latest schema, with the settings above).
configAvroSharpDeserializerConfigThe settings, or null for the defaults.
ruleRegistryRuleRegistryThe data contract rules, or null for Confluent.SchemaRegistry.RuleRegistry.GlobalInstance.