confluent-kafka-dotnet
Show / Hide Table of Contents

Class AsyncSerializer<T, TParsedSchema>

Inheritance
object
AsyncSerde<TParsedSchema>
AsyncSerializer<T, TParsedSchema>
JsonSerializer<T>
ProtobufSerializer<T>
Implements
IAsyncSerializer<T>
Inherited Members
AsyncSerde<TParsedSchema>.schemaRegistryClient
AsyncSerde<TParsedSchema>.ruleRegistry
AsyncSerde<TParsedSchema>.useSchemaId
AsyncSerde<TParsedSchema>.useLatestVersion
AsyncSerde<TParsedSchema>.latestCompatibilityStrict
AsyncSerde<TParsedSchema>.useLatestWithMetadata
AsyncSerde<TParsedSchema>.subjectNameStrategy
AsyncSerde<TParsedSchema>.serdeMutex
AsyncSerde<TParsedSchema>.GetSubjectName(string, bool, string)
AsyncSerde<TParsedSchema>.GetWriterSchema(string, SchemaId, string)
AsyncSerde<TParsedSchema>.GetParsedSchema(Schema)
AsyncSerde<TParsedSchema>.ParseSchema(Schema)
AsyncSerde<TParsedSchema>.ResolveReferences(Schema)
AsyncSerde<TParsedSchema>.IgnoreReference(string)
AsyncSerde<TParsedSchema>.GetMigrations(string, Schema, RegisteredSchema)
AsyncSerde<TParsedSchema>.GetReaderSchema(string, Schema)
AsyncSerde<TParsedSchema>.ExecuteMigrations(IList<Migration>, bool, string, string, Headers, object)
AsyncSerde<TParsedSchema>.ExecuteRules(bool, string, string, Headers, RuleMode, Schema, Schema, object, FieldTransformer)
AsyncSerde<TParsedSchema>.ExecuteRules(bool, string, string, Headers, RulePhase, RuleMode, Schema, Schema, object, FieldTransformer)
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Confluent.SchemaRegistry
Assembly: Confluent.SchemaRegistry.dll
Syntax
public abstract class AsyncSerializer<T, TParsedSchema> : AsyncSerde<TParsedSchema>, IAsyncSerializer<T>
Type Parameters
NameDescription
T
TParsedSchema

Constructors

AsyncSerializer(ISchemaRegistryClient, SerdeConfig, RuleRegistry)

Declaration
protected AsyncSerializer(ISchemaRegistryClient schemaRegistryClient, SerdeConfig config, RuleRegistry ruleRegistry = null)
Parameters
TypeNameDescription
ISchemaRegistryClientschemaRegistryClient
SerdeConfigconfig
RuleRegistryruleRegistry

Fields

autoRegisterSchema

Declaration
protected bool autoRegisterSchema
Field Value
TypeDescription
bool

initialBufferSize

Declaration
protected int initialBufferSize
Field Value
TypeDescription
int

normalizeSchemas

Declaration
protected bool normalizeSchemas
Field Value
TypeDescription
bool

schemaIdEncoder

Declaration
protected ISchemaIdEncoder schemaIdEncoder
Field Value
TypeDescription
ISchemaIdEncoder

subjectsRegistered

Declaration
protected HashSet<string> subjectsRegistered
Field Value
TypeDescription
HashSet<string>

Methods

SerializeAsync(T, SerializationContext)

Serialize the key or value of a Message<TKey, TValue> instance.

Declaration
public abstract Task<byte[]> SerializeAsync(T value, SerializationContext context)
Parameters
TypeNameDescription
Tvalue
SerializationContextcontext

Context relevant to the serialize operation.

Returns
TypeDescription
Task<byte[]>

A Task that completes with the serialized data.

Implements

IAsyncSerializer<T>
In this article