Open Pablovide opened 6 months ago
Can you provide more details on the exception with the stacktrace? You can refer our examples https://github.com/confluentinc/confluent-kafka-dotnet/blob/a67bd6c06b7eef4293e6476d9ff6f3e93f0e4cd9/examples/JsonSerialization/Program.cs#L141 to how to use ProducerBuilder
correctly.
@Pablovide I see that erroendue to Serializer..
For the Custom model you need to register the SetSerializer method with the Custom Serializer class derived from ISerializer interface.
That should work for you if still you have the issue.
Description
I need to dynamically create generic producers for my development, but ProducerBuilder throws ArgumentNullException on Build(). Is it doable or am I implementing it wrong?
How to reproduce
My application framework is netstandard 2.1, nuget version 2.3.0
I have created a simple console app to reproduce it (in this case it is net8):
Checklist
Please provide the following information: