Interface INatsDeserializeWithContext<T>
Extended deserializer interface with access to message context during deserialization.
public interface INatsDeserializeWithContext<out T> : INatsDeserialize<T>
Type Parameters
TDeserialized 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.