Table of Contents

Method SerializeAsync

Namespace
AvroSharp.KafkaFlow
Assembly
AvroSharp.KafkaFlow.dll

SerializeAsync(object, Stream, ISerializerContext)

Writes a message: its schema ID, registered or looked up once per type and subject, then its Avro encoding.

public Task SerializeAsync(object message, Stream output, ISerializerContext context)

Parameters

message object

The message.

output Stream

The stream the message body is written to.

context ISerializerContext

The topic.

Returns

Task

Exceptions

InvalidOperationException

The message's type is not one AvroTypes knows.