Table of Contents

Method AddSchemaRegistryAvroSharpDeserializerByTypeName

Namespace
AvroSharp.KafkaFlow
Assembly
AvroSharp.KafkaFlow.dll

AddSchemaRegistryAvroSharpDeserializerByTypeName(IConsumerMiddlewareConfigurationBuilder, AvroSharpDeserializerConfig?)

Reads each consumed message as the type its writer's record names, found by its .NET full name in the loaded assemblies, as KafkaFlow's AddSchemaRegistryAvroDeserializer does. It needs reflection, which AddSchemaRegistryAvroSharpDeserializer(IConsumerMiddlewareConfigurationBuilder, IEnumerable<Type>, AvroSharpDeserializerConfig?), given the message types, doesn't.

[RequiresUnreferencedCode("The message types are found by name in the loaded assemblies, and trimming can remove them. Pass the message types instead.")]
public static IConsumerMiddlewareConfigurationBuilder AddSchemaRegistryAvroSharpDeserializerByTypeName(this IConsumerMiddlewareConfigurationBuilder middlewares, AvroSharpDeserializerConfig? config = null)

Parameters

middlewares IConsumerMiddlewareConfigurationBuilder

The consumer's middlewares.

config AvroSharpDeserializerConfig

The settings, or null for the defaults.

Returns

IConsumerMiddlewareConfigurationBuilder