Table of Contents

Method CreateDeserializer

Namespace
AvroSharp.Confluent
Assembly
AvroSharp.Confluent.dll

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

client ISchemaRegistryClient

The schema registry.

readerSchema AvroSchema

The schema to read every message as, or null to read each as written (or as the latest schema, with the settings above).

config AvroSharpDeserializerConfig

The settings, or null for the defaults.

ruleRegistry RuleRegistry

The data contract rules, or null for Confluent.SchemaRegistry.RuleRegistry.GlobalInstance.

Returns

AvroSharpDeserializer<AvroValue>