confluent-kafka-dotnet
Show / Hide Table of Contents

Interface IAsyncDeserializerBuilder<T>

EXPERIMENTAL: subject to change or removal.

Defines a builder of IAsyncDeserializer<T> instances, for use with SetKeyDeserializerBuilder(IAsyncDeserializerBuilder<TKey>) and its value counterpart.

In contrast to supplying an already constructed deserializer, a builder is invoked by the consumer during construction, and is passed the consumer's own configuration along with whether the deserializer is being used for the message key or value.

Namespace: Confluent.Kafka
Assembly: Confluent.Kafka.dll
Syntax
public interface IAsyncDeserializerBuilder<T>
Type Parameters
Name Description
T

Methods

Build(IEnumerable<KeyValuePair<string, string>>, bool)

Build a deserializer.

Declaration
IAsyncDeserializer<T> Build(IEnumerable<KeyValuePair<string, string>> config, bool isKey)
Parameters
Type Name Description
IEnumerable<KeyValuePair<string, string>> config

The configuration of the consumer the deserializer will be used by.

bool isKey

Whether the deserializer will be used to deserialize message keys (true) or message values (false).

Returns
Type Description
IAsyncDeserializer<T>

The deserializer.

In this article