Table of Contents

Class NatsJsonContextSerializer<T>

Namespace
NATS.Client.Core
Assembly
NATS.Client.Core.dll

Serializer with support for JsonSerializerContext.

public sealed class NatsJsonContextSerializer<T> : INatsSerializer<T>, INatsSerialize<T>, INatsDeserialize<T>

Type Parameters

T
Inheritance
NatsJsonContextSerializer<T>
Implements
Inherited Members

Constructors

NatsJsonContextSerializer(JsonSerializerContext, INatsSerializer<T>?)
NatsJsonContextSerializer(JsonSerializerContext[], INatsSerializer<T>?)

Creates a new instance of NatsJsonContextSerializer<T>.

Methods

CombineWith(INatsSerializer<T>)

Combines the current serializer with the specified serializer.

Deserialize(in ReadOnlySequence<byte>)

Deserialize value from buffer.

Serialize(IBufferWriter<byte>, T)

Serialize value to buffer.