Table of Contents

Constructor AvroSharpDeserializer

Namespace
AvroSharp.Confluent
Assembly
AvroSharp.Confluent.dll

AvroSharpDeserializer(ISchemaRegistryClient, AvroSharpDeserializerConfig?, RuleRegistry?)

Creates a deserializer of a generated type or a primitive, which AvroTypes knows. On .NET Standard, pass the type's AvroTypeInfo to the other constructor, or register it first.

public AvroSharpDeserializer(ISchemaRegistryClient client, AvroSharpDeserializerConfig? config = null, RuleRegistry? ruleRegistry = null)

Parameters

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.

Exceptions

ArgumentException

config has a key the deserializer doesn't know.

InvalidOperationException

T is not registered in AvroTypes.

AvroSharpDeserializer(ISchemaRegistryClient, AvroTypeInfo<T>, AvroSharpDeserializerConfig?, RuleRegistry?)

Creates a deserializer of the type that type reads and writes.

public AvroSharpDeserializer(ISchemaRegistryClient client, AvroTypeInfo<T> type, AvroSharpDeserializerConfig? config = null, RuleRegistry? ruleRegistry = null)

Parameters

client ISchemaRegistryClient

The schema registry.

type AvroTypeInfo<T>

The type's schema and serializers.

config AvroSharpDeserializerConfig

The settings, or null for the defaults.

ruleRegistry RuleRegistry

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

Exceptions

ArgumentException

config has a key the deserializer doesn't know.