Build<T> method

Build(int, TombstoneBehavior)Builds a deserializer for a specific schema.
Build(string, TombstoneBehavior)Builds a deserializer for a specific schema.
Build(string, int, TombstoneBehavior)Builds a deserializer for a specific schema.

Build(int, TombstoneBehavior)

Builds a deserializer for a specific schema.
Signature
public System.Threading.Tasks.Task<Confluent.Kafka.IDeserializer<T>> Build<T> (int id, Chr.Avro.Confluent.TombstoneBehavior tombstoneBehavior = Chr.Avro.Confluent.TombstoneBehavior.None);

Type parameters

T
The type to be deserialized.

Parameters

int id
The ID of the schema that should be used to deserialize data.
TombstoneBehavior tombstoneBehavior
The behavior of the deserializer on tombstone records.

Return type

Task<IDeserializer<T>>
A IDeserializer<> based on the schema with ID .

Build(string, TombstoneBehavior)

Builds a deserializer for a specific schema.
Signature
public System.Threading.Tasks.Task<Confluent.Kafka.IDeserializer<T>> Build<T> (string subject, Chr.Avro.Confluent.TombstoneBehavior tombstoneBehavior = Chr.Avro.Confluent.TombstoneBehavior.None);

Type parameters

T
The type to be deserialized.

Parameters

string subject
The subject of the schema that should be used to deserialize data. The latest version of the subject will be resolved.
TombstoneBehavior tombstoneBehavior
The behavior of the deserializer on tombstone records.

Return type

Task<IDeserializer<T>>
A IDeserializer<> based on the latest schema of subject .

Build(string, int, TombstoneBehavior)

Builds a deserializer for a specific schema.
Signature
public System.Threading.Tasks.Task<Confluent.Kafka.IDeserializer<T>> Build<T> (string subject, int version, Chr.Avro.Confluent.TombstoneBehavior tombstoneBehavior = Chr.Avro.Confluent.TombstoneBehavior.None);

Type parameters

T
The type to be deserialized.

Parameters

string subject
The subject of the schema that should be used to deserialize data.
int version
The version of the subject to be resolved.
TombstoneBehavior tombstoneBehavior
The behavior of the deserializer on tombstone records.

Return type

Task<IDeserializer<T>>
A IDeserializer<> based on the schema of subject with version .
Chr.Avro