Farfetch / kafkaflow

Apache Kafka .NET Framework to create applications simple to use and extend.
https://farfetch.github.io/kafkaflow/
MIT License
653 stars 118 forks source link

feat: add an ability to call IServiceProvider during configuration #576

Closed vchirikov closed 4 months ago

vchirikov commented 4 months ago

Description

Often the configuration is unknown before the DI container is created, MS Dependency Injection supports factory registration for this. The PR adds an ability to use IServiceProvider for library configuration.

Fixes Kafka configuration from DI · Issue #271 · Farfetch/kafkaflow

Checklist

vchirikov commented 4 months ago

Sorry guys, it won't work, because in this case MicrosoftDependencyConfigurator tries to reconfigure service collection after build.