confluent-kafka-dotnet
Show / Hide Table of Contents

Interface IAsyncDeserializer<T>

A deserializer for use with Confluent.Kafka.Consumer<TKey, TValue>.

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

Methods

DeserializeAsync(ReadOnlyMemory<byte>, bool, SerializationContext)

Deserialize a message key or value.

Declaration
Task<T> DeserializeAsync(ReadOnlyMemory<byte> data, bool isNull, SerializationContext context)
Parameters
Type Name Description
ReadOnlyMemory<byte> data

The raw byte data to deserialize.

bool isNull

True if this is a null value.

SerializationContext context

Context relevant to the deserialize operation.

Returns
Type Description
Task<T>

A Task that completes with the deserialized value.

Extension Methods

SyncOverAsyncDeserializerExtensionMethods.AsSyncOverAsync<T>(IAsyncDeserializer<T>)
In this article