Class AvroDataFormat
Apache Avro binary (Chr.Avro). The schema comes from
or is built from the CLR type; serializer and deserializer
delegates are built once per type and cached. Optional Confluent Schema Registry framing.
public sealed class AvroDataFormat : IMessageSerializer
Inheritance
Implements
Properties
ContentType
Content type this serializer handles (e.g., "application/json").
public string ContentType { get; }
MediaTypes
All media types this serializer can handle, including structured-suffix aliases
public IReadOnlyCollection<string> MediaTypes { get; }
Methods
Deserialize(byte[], Type)
Deserializes a byte array to a typed value.
public object? Deserialize(byte[] data, Type type)
Deserialize<T>(byte[])
Deserializes a byte array to a typed value.
public T? Deserialize<T>(byte[] data)
SchemaFor(Type)
The schema used for type (explicit or built from the type).
public Schema SchemaFor(Type type)
Constructors
AvroDataFormat(AvroDataFormatOptions?)
Creates the format with the given options (defaults when null).