confluent-kafka-dotnet
Show / Hide Table of Contents

Interface IAsyncDeserializer<T>

A deserializer for use with Confluent.Kafka.Consumer`2.

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

Methods

DeserializeAsync(ReadOnlyMemory<Byte>, Boolean, SerializationContext)

Deserialize a message key or value.

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

The raw byte data to deserialize.

System.Boolean isNull

True if this is a null value.

SerializationContext context

Context relevant to the deserialize operation.

Returns
Type Description
System.Threading.Tasks.Task<T>

A System.Threading.Tasks.Task that completes with the deserialized value.