Class AsyncSerializer<T, TParsedSchema>
Inheritance
AsyncSerializer<T, TParsedSchema>
Assembly: Confluent.SchemaRegistry.dll
Syntax
public abstract class AsyncSerializer<T, TParsedSchema> : AsyncSerde<TParsedSchema>, IAsyncSerializer<T>
Type Parameters
Name |
Description |
T |
|
TParsedSchema |
|
Constructors
AsyncSerializer(ISchemaRegistryClient, SerdeConfig, RuleRegistry)
Declaration
protected AsyncSerializer(ISchemaRegistryClient schemaRegistryClient, SerdeConfig config, RuleRegistry ruleRegistry = null)
Parameters
Fields
autoRegisterSchema
Declaration
protected bool autoRegisterSchema
Field Value
initialBufferSize
Declaration
protected int initialBufferSize
Field Value
normalizeSchemas
Declaration
protected bool normalizeSchemas
Field Value
schemaIdEncoder
Declaration
protected ISchemaIdEncoder schemaIdEncoder
Field Value
subjectsRegistered
Declaration
protected HashSet<string> subjectsRegistered
Field Value
Methods
SerializeAsync(T, SerializationContext)
Declaration
public abstract Task<byte[]> SerializeAsync(T value, SerializationContext context)
Parameters
Type |
Name |
Description |
T |
value |
|
SerializationContext |
context |
Context relevant to the serialize operation.
|
Returns
Type |
Description |
Task<byte[]> |
A Task that
completes with the serialized data.
|
Implements