Table of Contents

Method SetAvroSharpValueDeserializer

Namespace
AvroSharp.Confluent
Assembly
AvroSharp.Confluent.dll

SetAvroSharpValueDeserializer<TKey, TValue>(ConsumerBuilder<TKey, TValue>, ISchemaRegistryClient, AvroSharpDeserializerConfig?, RuleRegistry?)

Reads values with an AvroSharpDeserializer<T> of TValue, which AvroTypes knows.

public static ConsumerBuilder<TKey, TValue> SetAvroSharpValueDeserializer<TKey, TValue>(this ConsumerBuilder<TKey, TValue> builder, ISchemaRegistryClient client, AvroSharpDeserializerConfig? config = null, RuleRegistry? ruleRegistry = null)

Parameters

builder ConsumerBuilder<TKey, TValue>

The consumer builder.

client ISchemaRegistryClient

The schema registry.

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, TValue>

Type Parameters

TKey

The key type.

TValue

The value type.