Table of Contents

Method SetAvroSharpGenericValueDeserializer

Namespace
AvroSharp.Confluent
Assembly
AvroSharp.Confluent.dll

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

builder ConsumerBuilder<TKey, AvroValue>

The consumer builder.

client ISchemaRegistryClient

The schema registry.

readerSchema AvroSchema

The schema to read every message as, or null to read each as written.

config AvroSharpDeserializerConfig

The settings, or null for the defaults.

ruleRegistry RuleRegistry

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

Returns

ConsumerBuilder<TKey, AvroValue>

Type Parameters

TKey

The key type.