Method SetAvroSharpGenericValueSerializer
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).
public static ProducerBuilder<TKey, AvroValue> SetAvroSharpGenericValueSerializer<TKey>(this ProducerBuilder<TKey, AvroValue> builder, ISchemaRegistryClient client, AvroSchema? schema = null, AvroSharpSerializerConfig? config = null, RuleRegistry? ruleRegistry = null)
Parameters
builderProducerBuilder<TKey, AvroValue>The producer builder.
clientISchemaRegistryClientThe schema registry.
schemaAvroSchemaThe schema the values are written with, or null to write each record with its own.
configAvroSharpSerializerConfigThe settings, or null for the defaults.
ruleRegistryRuleRegistryThe data contract rules, or null for Confluent.SchemaRegistry.RuleRegistry.GlobalInstance.
Returns
- ProducerBuilder<TKey, AvroValue>
Type Parameters
TKeyThe key type.