Constructor NatsJsonSerializer
NatsJsonSerializer()
Reflection-based JSON serializer for NATS.
public NatsJsonSerializer()
Remarks
This serializer is not suitable for native AOT deployments since it might rely on reflection
NatsJsonSerializer(JsonSerializerOptions)
Creates a new instance of NatsJsonSerializer<T> with the specified options.
public NatsJsonSerializer(JsonSerializerOptions opts)
Parameters
optsJsonSerializerOptionsSerialization options
NatsJsonSerializer(JsonSerializerOptions, JsonWriterOptions)
Creates a new instance of NatsJsonSerializer<T> with the specified options and writer options.
public NatsJsonSerializer(JsonSerializerOptions opts, JsonWriterOptions writerOpts)
Parameters
optsJsonSerializerOptionsSerialization options
writerOptsJsonWriterOptionsWriter options