Method SerializeAsync
SerializeAsync(AvroValue, SerializationContext)
Writes a record with its schema. A null value is a tombstone: no message body.
public Task<byte[]?> SerializeAsync(AvroValue data, SerializationContext context)
Parameters
dataAvroValueThe record.
contextSerializationContextThe topic, the component (key or value) and the headers.
Returns
Exceptions
- ArgumentException
datais not a record.