Table of Contents

Method SetAvroSharpGenericValueSerializer

Namespace
AvroSharp.Confluent
Assembly
AvroSharp.Confluent.dll

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

builder ProducerBuilder<TKey, AvroValue>

The producer builder.

client ISchemaRegistryClient

The schema registry.

schema AvroSchema

The schema the values are written with, or null to write each record with its own.

config AvroSharpSerializerConfig

The settings, or null for the defaults.

ruleRegistry RuleRegistry

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

Returns

ProducerBuilder<TKey, AvroValue>

Type Parameters

TKey

The key type.