Method Create
Create<T>(AvroRegistryFraming, IAvroSchemaIdResolver, Func<AvroSchema, AvroReadFunc<T>>, AvroRegistryReaderOptions?)
Creates a reader of messages in framing.
public static AvroRegistryMessageReader<T> Create<T>(AvroRegistryFraming framing, IAvroSchemaIdResolver resolver, Func<AvroSchema, AvroReadFunc<T>> createReader, AvroRegistryReaderOptions? options = null)
Parameters
framingAvroRegistryFramingThe registry's framing.
resolverIAvroSchemaIdResolverFinds each message's writer schema by its ID.
createReaderFunc<AvroSchema, AvroReadFunc<T>>Called once per writer schema; returns the function that reads one object of it. For a generated type, return its
Readmethod when the schema is its own, and a function callingRead(ref reader, writerSchema)otherwise.optionsAvroRegistryReaderOptionsLimits, or null for the defaults.
Returns
Type Parameters
TThe type read.
Create<T>(AvroRegistryFraming, IAvroSchemaIdResolver, AvroRegistryReaderOptions?)
Creates a reader of schema-registry messages of a generated type, resolving other writer schemas.
public static AvroRegistryMessageReader<T> Create<T>(AvroRegistryFraming framing, IAvroSchemaIdResolver resolver, AvroRegistryReaderOptions? options = null) where T : IAvroSerializable<T>
Parameters
framingAvroRegistryFramingThe message framing.
resolverIAvroSchemaIdResolverFinds each message's writer schema by its ID.
optionsAvroRegistryReaderOptionsLimits, or null for the defaults.
Returns
Type Parameters
TA generated type.