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