Table of Contents

Class AvroSchemaIdStore

Namespace
AvroSharp.Messages
Assembly
AvroSharp.dll

A thread-safe, in-memory IAvroSchemaIdResolver, for tests and for applications that know their schemas and IDs ahead of time. Its asynchronous fill only looks in memory.

public sealed class AvroSchemaIdStore : IAvroSchemaIdResolver
Inheritance
AvroSchemaIdStore
Implements
Inherited Members

Methods

Add(AvroSchemaId, AvroSchema)

Adds a schema under an ID; a schema already under that ID is replaced.

GetSchema(AvroSchemaId)

Gets the schema with the given ID if it is already known, or null.

GetSchemaAsync(AvroSchemaId, CancellationToken)

Gets the schema with the given ID, fetching it if needed; null when it does not exist.

See Also