SchemaRegistrySerializerBuilder class

Builds ISerializer<T>s based on specific schemas from a Schema Registry instance.
AssemblyChr.Avro.Confluent
NamespaceChr.Avro.Confluent
Signature
public class SchemaRegistrySerializerBuilder : Chr.Avro.Confluent.ISchemaRegistrySerializerBuilder, IDisposable
Baseobject
InterfacesISchemaRegistrySerializerBuilder
IDisposable

Constructors

SchemaRegistrySerializerBuilder(ISchemaRegistryClient, ISchemaBuilder, IJsonSchemaReader, IJsonSchemaWriter, IBinarySerializerBuilder)
Creates a serializer builder.
SchemaRegistrySerializerBuilder(IEnumerable<KeyValuePair<string>>, ISchemaBuilder, IJsonSchemaReader, IJsonSchemaWriter, IBinarySerializerBuilder)
Creates a serializer builder.

Properties

ISchemaRegistryClient RegistryClient
The client to use for Schema Registry operations.
ISchemaBuilder SchemaBuilder
The schema builder used to create a schema for a C# type when registering automatically.
IJsonSchemaReader SchemaReader
The JSON schema reader used to convert schemas received from the registry into abstract representations.
IJsonSchemaWriter SchemaWriter
The JSON schema writer used to convert abstract schema representations when registering automatically.
IBinarySerializerBuilder SerializerBuilder
The deserializer builder to use to build serialization functions for C# types.

Methods

Task<ISerializer<T>> Build<T>(int, TombstoneBehavior)
Builds a serializer for a specific schema.
ISerializer<T> Build<T>(int, string, TombstoneBehavior)
Builds a serializer for the Confluent wire format.
Task<ISerializer<T>> Build<T>(string, AutomaticRegistrationBehavior, TombstoneBehavior)
Builds a serializer for a specific schema.
Task<ISerializer<T>> Build<T>(string, int, TombstoneBehavior)
Builds a serializer for a specific schema.
void Dispose()
Disposes the builder, freeing up any resources.
void Dispose(bool)
Disposes the builder, freeing up any resources.
Chr.Avro