Table of Contents

Method Encode

Namespace
AvroSharp.Messages
Assembly
AvroSharp.dll

Encode(AvroSchemaId)

Encodes a schema ID as a header value.

public static byte[] Encode(AvroSchemaId schemaId)

Parameters

schemaId AvroSchemaId

The schema ID, a GUID (FromGuid(Guid)).

Returns

byte[]

Exceptions

ArgumentException

The ID is a number: this header carries GUIDs.