kmcclellan / kafka-di

An extension of Confluent's Kafka client for use with Microsoft.Extensions.DependencyInjection (and friends).
https://www.nuget.org/packages/Confluent.Kafka.DependencyInjection
MIT License
13 stars 5 forks source link

Use scopes for config overriding #9

Closed kmcclellan closed 1 year ago

kmcclellan commented 1 year ago

The existing GenericServiceMapper works okay, but there is a simpler and likely more maintainable approach utilizing scopes. In the simpler case, a caller may resolve and modify client config prior to resolving the builder. In the case of an injected client, any scoped config in passed down into the scope of the resolved builder.