Table of Contents

Method ParseAsync

Namespace
AvroSharp.Schemas
Assembly
AvroSharp.dll

ParseAsync(Stream, CancellationToken)

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

public ValueTask<AvroSchema> ParseAsync(Stream utf8Json, CancellationToken cancellationToken = default)

Parameters

utf8Json Stream

The stream to read; it is not disposed.

cancellationToken CancellationToken

A token to cancel the read.

Returns

ValueTask<AvroSchema>

Exceptions

AvroSchemaException

The JSON is malformed or the schema is invalid.