Table of Contents

Interface INatsDeserializeWithContext<T>

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

Extended deserializer interface with access to message context during deserialization.

public interface INatsDeserializeWithContext<out T> : INatsDeserialize<T>

Type Parameters

T

Deserialized object type

Inherited Members
Extension Methods

Remarks

The context carries the message Subject, which can be used as a type discriminator when the schema is fixed per family of subjects rather than per stream (for example dispatching orders.created. and orders.cancelled. to different types).

Methods

Deserialize(in ReadOnlySequence<byte>, in NatsMsgContext)

Deserialize value from buffer with message context.

See Also