Class AvroSharpSerdeExtensions
Sets AvroSharp serializers and deserializers on Confluent.Kafka's producer and consumer builders, as their
synchronous interfaces, so both Produce and ProduceAsync work. They wait for the registry the first
time each schema is written or read.
public static class AvroSharpSerdeExtensions
- Inheritance
-
AvroSharpSerdeExtensions
- Inherited Members
Methods
- 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?)).
- SetAvroSharpGenericValueSerializer<TKey>(ProducerBuilder<TKey, AvroValue>, ISchemaRegistryClient, AvroSchema?, AvroSharpSerializerConfig?, RuleRegistry?)
Writes generic values (AvroValue): of
schema, or, without one, each record with its own schema (AvroSharpGeneric).
- SetAvroSharpKeyDeserializer<TKey, TValue>(ConsumerBuilder<TKey, TValue>, ISchemaRegistryClient, AvroSharpDeserializerConfig?, RuleRegistry?)
Reads keys with an AvroSharpDeserializer<T> of
TKey, which AvroTypes knows.
- SetAvroSharpKeySerializerAsync<TKey, TValue>(ProducerBuilder<TKey, TValue>, ISchemaRegistryClient, string, int, AvroSharpSerializerConfig?, RuleRegistry?)
Writes keys with a version of a subject, pinned: an AvroSharpSerializer<T> with that version's schema ID (
use.schema.id), under that subject for every topic. A key type whose schema differs from the version's is written in it, when the version can read the type's schema (id.compatibility.strict).
- SetAvroSharpKeySerializer<TKey, TValue>(ProducerBuilder<TKey, TValue>, ISchemaRegistryClient, AvroSharpSerializerConfig?, RuleRegistry?)
Writes keys with an AvroSharpSerializer<T> of
TKey, which AvroTypes knows.
- SetAvroSharpValueDeserializer<TKey, TValue>(ConsumerBuilder<TKey, TValue>, ISchemaRegistryClient, AvroSharpDeserializerConfig?, RuleRegistry?)
Reads values with an AvroSharpDeserializer<T> of
TValue, which AvroTypes knows.
- SetAvroSharpValueSerializerAsync<TKey, TValue>(ProducerBuilder<TKey, TValue>, ISchemaRegistryClient, string, int, AvroSharpSerializerConfig?, RuleRegistry?)
Writes values with a version of a subject, pinned: an AvroSharpSerializer<T> with that version's schema ID (
use.schema.id), under that subject for every topic. A value type whose schema differs from the version's is written in it, when the version can read the type's schema (id.compatibility.strict).
- SetAvroSharpValueSerializer<TKey, TValue>(ProducerBuilder<TKey, TValue>, ISchemaRegistryClient, AvroSharpSerializerConfig?, RuleRegistry?)
Writes values with an AvroSharpSerializer<T> of
TValue, which AvroTypes knows.