Method DeserializeAsync
DeserializeAsync(Stream, Type, ISerializerContext)
Reads a message as type.
public Task<object> DeserializeAsync(Stream input, Type type, ISerializerContext context)
Parameters
inputStreamThe message body.
typeTypeThe type to read, which AvroTypes knows.
contextISerializerContextThe topic.
Returns
Exceptions
- InvalidOperationException
typeis not one AvroTypes knows.