Constructor NatsJsonContextSerializer
NatsJsonContextSerializer(JsonSerializerContext[], INatsSerializer<T>?)
Creates a new instance of NatsJsonContextSerializer<T>.
public NatsJsonContextSerializer(JsonSerializerContext[] contexts, INatsSerializer<T>? next = null)
Parameters
contexts
JsonSerializerContext[]Context to use for serialization.
next
INatsSerializer<T>Next serializer in chain.
NatsJsonContextSerializer(JsonSerializerContext, INatsSerializer<T>?)
public NatsJsonContextSerializer(JsonSerializerContext context, INatsSerializer<T>? next = null)
Parameters
context
JsonSerializerContextnext
INatsSerializer<T>