Table of Contents

Method CreateGeneric

Namespace
AvroSharp.Messages
Assembly
AvroSharp.dll

CreateGeneric(IAvroSchemaResolver, AvroSchema?, GenericDatumReaderOptions?)

Creates a reader of messages as generic values.

public static AvroMessageReader<AvroValue> CreateGeneric(IAvroSchemaResolver resolver, AvroSchema? readerSchema = null, GenericDatumReaderOptions? readerOptions = null)

Parameters

resolver IAvroSchemaResolver

Finds each message's writer schema.

readerSchema AvroSchema

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

readerOptions GenericDatumReaderOptions

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

Returns

AvroMessageReader<AvroValue>