Class JsonSchemaRegistryMessageSerializerBuilder
- Namespace
- Silverback.Messaging.Configuration
- Assembly
- Silverback.Integration.Kafka.SchemaRegistry.dll
Builds the JsonSchemaRegistryMessageSerializer<TMessage>.
public class JsonSchemaRegistryMessageSerializerBuilder : SchemaRegistrySerializerBuilder<JsonSchemaRegistryMessageSerializerBuilder>
- Inheritance
-
JsonSchemaRegistryMessageSerializerBuilder
- Inherited Members
Constructors
JsonSchemaRegistryMessageSerializerBuilder(IConfluentSchemaRegistryClientFactory)
Initializes a new instance of the JsonSchemaRegistryMessageSerializerBuilder class.
public JsonSchemaRegistryMessageSerializerBuilder(IConfluentSchemaRegistryClientFactory schemaRegistryClientFactory)
Parameters
schemaRegistryClientFactoryIConfluentSchemaRegistryClientFactoryThe IConfluentSchemaRegistryClientFactory to be used to create the schema registry client.
Properties
This
Gets the actual builder instance.
protected override JsonSchemaRegistryMessageSerializerBuilder This { get; }
Property Value
Methods
BuildCore(Type, ISchemaRegistryClient)
Builds the IMessageSerializer instance.
protected override IMessageSerializer BuildCore(Type messageType, ISchemaRegistryClient schemaRegistryClient)
Parameters
messageTypeTypeThe type of the message to serialize.
schemaRegistryClientISchemaRegistryClientThe schema registry client.
Returns
Configure(Action<JsonSerializerConfig>)
Configures the Confluent.SchemaRegistry.Serdes.JsonSerializerConfig.
public JsonSchemaRegistryMessageSerializerBuilder Configure(Action<JsonSerializerConfig> configureAction)
Parameters
configureActionAction<JsonSerializerConfig>An Action<T> that takes the Confluent.SchemaRegistry.Serdes.JsonSerializerConfig and configures it.
Returns
- JsonSchemaRegistryMessageSerializerBuilder
The JsonSchemaRegistryMessageSerializerBuilder so that additional calls can be chained.
ConfigureSchemaGenerator(Action<JsonSchemaGeneratorSettings>)
Configures the NJsonSchema.Generation.JsonSchemaGeneratorSettings.
public JsonSchemaRegistryMessageSerializerBuilder ConfigureSchemaGenerator(Action<JsonSchemaGeneratorSettings> configureAction)
Parameters
configureActionAction<JsonSchemaGeneratorSettings>An Action<T> that takes the NJsonSchema.Generation.JsonSchemaGeneratorSettings and configures it.
Returns
- JsonSchemaRegistryMessageSerializerBuilder
The JsonSchemaRegistryMessageSerializerBuilder so that additional calls can be chained.