Class KafkaAvroDeserializerConfiguration
- Namespace
- Silverback.Messaging.Configuration.Kafka.SchemaRegistry
- Assembly
- Silverback.Integration.Kafka.SchemaRegistry.dll
Wraps the Confluent.SchemaRegistry.Serdes.AvroDeserializerConfig.
public sealed record KafkaAvroDeserializerConfiguration : IEquatable<KafkaAvroDeserializerConfiguration>
- Inheritance
-
KafkaAvroDeserializerConfiguration
- Implements
- Inherited Members
Constructors
KafkaAvroDeserializerConfiguration()
public KafkaAvroDeserializerConfiguration()
Properties
SchemaIdStrategy
Gets the schema ID strategy. The default is Confluent.SchemaRegistry.SchemaIdDeserializerStrategy.Dual.
public SchemaIdDeserializerStrategy? SchemaIdStrategy { get; init; }
Property Value
- SchemaIdDeserializerStrategy?
SubjectNameStrategy
Gets the subject name strategy. The default is Confluent.SchemaRegistry.SubjectNameStrategy.Associated.
public SubjectNameStrategy? SubjectNameStrategy { get; init; }
Property Value
- SubjectNameStrategy?
UseLatestVersion
Gets a value indicating whether the deserializer should use the latest subject version for deserialization. Note that there is no check that the latest schema is backwards compatible with the schema of the message being deserialized.
public bool? UseLatestVersion { get; init; }
Property Value
- bool?
UseLatestWithMetadata
Gets the metadata to be used to select the latest subject version to be used for deserialization. Note that there is no check that the latest schema is backwards compatible with the schema of the message being deserialized.
public IReadOnlyDictionary<string, string>? UseLatestWithMetadata { get; init; }
Property Value
ValidationRulesExecution
Gets a value specifying when the inline validation rules run, relative to the domain rule transformations. The default is Confluent.SchemaRegistry.ValidationRulesExecution.Disabled.
public ValidationRulesExecution? ValidationRulesExecution { get; init; }
Property Value
- ValidationRulesExecution?
ValidationRulesFailFast
Gets a value indicating whether the validation stops at the first failed rule and reports only that violation.
public bool? ValidationRulesFailFast { get; init; }
Property Value
- bool?
Methods
Equals(KafkaAvroDeserializerConfiguration?)
public bool Equals(KafkaAvroDeserializerConfiguration? other)
Parameters
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(KafkaAvroDeserializerConfiguration?, KafkaAvroDeserializerConfiguration?)
public static bool operator ==(KafkaAvroDeserializerConfiguration? left, KafkaAvroDeserializerConfiguration? right)
Parameters
Returns
operator !=(KafkaAvroDeserializerConfiguration?, KafkaAvroDeserializerConfiguration?)
public static bool operator !=(KafkaAvroDeserializerConfiguration? left, KafkaAvroDeserializerConfiguration? right)