Interface IAvroSchemaResolver
Finds writer schemas by their CRC-64-AVRO fingerprint, for reading single-object encoded messages: a synchronous lookup of what is already known, and an asynchronous one that may fetch. AvroMessageReader<T> uses the lookup in Read(ReadOnlySpan<byte>) and the asynchronous one when ReadAsync(ReadOnlyMemory<byte>, CancellationToken) meets a fingerprint for the first time. AvroSchemaStore is the in-memory implementation.
public interface IAvroSchemaResolver
Methods
- GetSchema(long)
Gets the schema with the given fingerprint if it is already known, or null.
- GetSchemaAsync(long, CancellationToken)
Gets the schema with the given fingerprint, fetching it if needed; null when it does not exist.