jet / FsKafka

Minimal F# wrappers for Confluent.Kafka+librdkafka.redist 1.x
https://github.com/jet/dotnet-templates
Apache License 2.0
88 stars 17 forks source link

Use reflection to get config DU case labels #12

Closed chrnola closed 6 years ago

chrnola commented 6 years ago

Using Object.ToString() is not reliable enough as this caused runtime issues when called from across assembly boundaries. For example, this function returned "confluent.kafka.config+producer+compression" when passed Confluent.Kafka.Config.Producer.Compression.None. Using reflection should yield more predictable results.