Constructor AvroSharpDeserializer
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
clientISchemaRegistryClientThe schema registry.
configAvroSharpDeserializerConfigThe settings, or null for the defaults.
ruleRegistryRuleRegistryThe data contract rules, or null for Confluent.SchemaRegistry.RuleRegistry.GlobalInstance.
Exceptions
- ArgumentException
confighas a key the deserializer doesn't know.- InvalidOperationException
Tis 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
clientISchemaRegistryClientThe schema registry.
typeAvroTypeInfo<T>The type's schema and serializers.
configAvroSharpDeserializerConfigThe settings, or null for the defaults.
ruleRegistryRuleRegistryThe data contract rules, or null for Confluent.SchemaRegistry.RuleRegistry.GlobalInstance.
Exceptions
- ArgumentException
confighas a key the deserializer doesn't know.