Method DeserializeAsync
DeserializeAsync(ReadOnlyMemory<byte>, bool, SerializationContext)
Reads a value: the writer's schema by the message's schema ID, then the data resolved to the type's schema.
[SuppressMessage("Design", "CA1031:Do not catch general exception types", Justification = "Every exception goes into the returned task, as an async method's does.")]
public override Task<T> DeserializeAsync(ReadOnlyMemory<byte> data, bool isNull, SerializationContext context)
Parameters
dataReadOnlyMemory<byte>The message body.
isNullboolWhether the message has no body; the result is then the default of
T.contextSerializationContextThe topic, the component (key or value) and the headers.
Returns
- Task<T>