Service Scope Fixes
Addresses two bugs related to service scopes:
- Previously, all consumers/producers resolved by DI shared a service scope. Instances of any Kafka handlers/serializers registered as scoped would be shared by all clients. Now, each client uses a distinct scope shared by all its handlers/serializers (useful if you want two different handlers to share state).
- Previously, any disposable handlers/serializers initialized by
IKafkaFactory
would be disposed with the service provider (regardless of how many clients were created). Now, they are disposed with the clients.
Full Changelog: v2.1.1...v2.1.2
NuGet Package: https://www.nuget.org/packages/Confluent.Kafka.DependencyInjection/2.1.2