Method DeserializeAsync
DeserializeAsync(ReadOnlyMemory<byte>, bool, SerializationContext)
Reads a value. A tombstone reads as null; it can't be read as a value type.
public Task<T> DeserializeAsync(ReadOnlyMemory<byte> data, bool isNull, SerializationContext context)
Parameters
dataReadOnlyMemory<byte>The message body.
isNullboolWhether the message has no body.
contextSerializationContextThe topic.
Returns
- Task<T>
Exceptions
- InvalidOperationException
The message is a tombstone and
Tis a value type.