Это моя попытка: < /p>
Код: Выделить всё
var value = myRecord.GetProperty("value").GetBytesFromBase64();
var schemaRegistryConfig = new SchemaRegistryConfig
{
Url = "mySchemaRegistry"
};
using var schemaRegistry = new CachedSchemaRegistryClient(schemaRegistryConfig);
var deserializer = new AvroDeserializer(schemaRegistry);
try
{
var result = deserializer.DeserializeAsync(value, false, SerializationContext.Empty).Result;
return result;
}
catch(Exception ex)
{
return null;
}
< /code>
В настоящее время deserializeasync бросает следующее исключение: < /p>
AvroDeserializer only accepts type parameters of int, bool, double, string, float, long, byte[], instances of ISpecificRecord and subclasses of SpecificFixed.
Подробнее здесь: https://stackoverflow.com/questions/775 ... da-trigger
Мобильная версия