confluent-kafka-dotnet icon indicating copy to clipboard operation
confluent-kafka-dotnet copied to clipboard

Allow multiple calls to SetStatisticsHandler / SetLogHandler / SetErrorHandler

Open g7ed6e opened this issue 1 year ago • 0 comments

The LogHandler and the StatisticsHandler are protected internal non virtual multicast delegates. This visibility and the fact that current implementation throw when a SetXXXHandler is called multiple times defeats the purpose of multicast delegates and make implementation of a 3rd party package using these delegates fragile. I’m thinking there to the implementation of an instrumentation packages for example.

g7ed6e avatar Dec 12 '23 05:12 g7ed6e