Class NatsJsonContextSerializer<T>
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>?)
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.