Table of Contents

Method ParseAsync

Namespace
AvroSharp.Schemas
Assembly
AvroSharp.dll

ParseAsync(Stream, AvroSchemaParseOptions?, CancellationToken)

Reads and parses a schema from a stream of UTF-8 encoded JSON.

public static ValueTask<AvroSchema> ParseAsync(Stream utf8Json, AvroSchemaParseOptions? options = null, CancellationToken cancellationToken = default)

Parameters

utf8Json Stream

The stream to read; it is not disposed.

options AvroSchemaParseOptions

Parse options, or null for the defaults.

cancellationToken CancellationToken

A token to cancel the read.

Returns

ValueTask<AvroSchema>

Exceptions

AvroSchemaException

The JSON is malformed or the schema is invalid.