Interface INatsSerializeWithContext<T>
Extended serializer interface with access to message context during serialization.
public interface INatsSerializeWithContext<in T> : INatsSerialize<T>
Type Parameters
TSerialized object type
- Inherited Members
- Extension Methods
Remarks
The context carries the message Subject, ReplyTo and Headers. To mutate headers during serialization the caller must pass a non-null headers instance to the publish call; see NatsSerializationExtensions.
Methods
- Serialize(IBufferWriter<byte>, T, in NatsMsgContext)
Serialize value to buffer with message context.