Skip to content

Service Scope Fixes

Compare
Choose a tag to compare
@kmcclellan kmcclellan released this 02 Feb 19:18
· 26 commits to main since this release

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