Method SerializeAsync
SerializeAsync(T, SerializationContext)
Writes a value: its schema ID (registered or looked up once per subject), then its Avro encoding.
public override Task<byte[]?> SerializeAsync(T value, SerializationContext context)
Parameters
valueTThe value. A null reference is written as no message body.
contextSerializationContextThe topic, the component (key or value) and the headers.