Table of Contents

Method CreateGeneric

Namespace
AvroSharp.Messages
Assembly
AvroSharp.dll

CreateGeneric(AvroRegistryFraming, IAvroSchemaIdResolver, AvroSchema?, AvroRegistryReaderOptions?, GenericDatumReaderOptions?)

Creates a reader of messages in framing as generic values.

public static AvroRegistryMessageReader<AvroValue> CreateGeneric(AvroRegistryFraming framing, IAvroSchemaIdResolver resolver, AvroSchema? readerSchema = null, AvroRegistryReaderOptions? options = null, GenericDatumReaderOptions? readerOptions = null)

Parameters

framing AvroRegistryFraming

The registry's framing.

resolver IAvroSchemaIdResolver

Finds each message's writer schema by its ID.

readerSchema AvroSchema

The schema to resolve every message to; null reads each as written.

options AvroRegistryReaderOptions

Limits, or null for the defaults.

readerOptions GenericDatumReaderOptions

The generic reader's options, or null for the defaults.

Returns

AvroRegistryMessageReader<AvroValue>