Class JsonSchemaRegistryMessageSerializer<TMessage>
- Namespace
- Silverback.Messaging.Serialization
- Assembly
- Silverback.Integration.Kafka.SchemaRegistry.dll
Connects to the specified schema registry and serializes the messages as JSON.
public class JsonSchemaRegistryMessageSerializer<TMessage> : SchemaRegistryMessageSerializer<TMessage>, IMessageSerializer where TMessage : class
Type Parameters
TMessageThe type of the messages to be serialized.
- Inheritance
-
SchemaRegistryMessageSerializer<TMessage>JsonSchemaRegistryMessageSerializer<TMessage>
- Implements
- Inherited Members
Constructors
JsonSchemaRegistryMessageSerializer(ISchemaRegistryClient, JsonSerializerConfig?, NewtonsoftJsonSchemaGeneratorSettings?)
Initializes a new instance of the JsonSchemaRegistryMessageSerializer<TMessage> class.
public JsonSchemaRegistryMessageSerializer(ISchemaRegistryClient schemaRegistryClient, JsonSerializerConfig? jsonSerializerConfig = null, NewtonsoftJsonSchemaGeneratorSettings? jsonSchemaGeneratorSettings = null)
Parameters
schemaRegistryClientISchemaRegistryClientThe schema registry client.
jsonSerializerConfigJsonSerializerConfigThe Confluent.SchemaRegistry.Serdes.JsonSerializer<T> configuration.
jsonSchemaGeneratorSettingsNewtonsoftJsonSchemaGeneratorSettingsThe JSON schema generator settings.
Properties
JsonSchemaGeneratorSettings
Gets the JSON schema generator settings.
public JsonSchemaGeneratorSettings? JsonSchemaGeneratorSettings { get; }
Property Value
- JsonSchemaGeneratorSettings
JsonSerializerConfig
Gets the Confluent.SchemaRegistry.Serdes.JsonSerializer<T> configuration.
public JsonSerializerConfig? JsonSerializerConfig { get; }
Property Value
- JsonSerializerConfig