Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement a CombinedProducerRegistryFactory for using multiple message transports [v10] #3271

Merged
merged 6 commits into from
Aug 29, 2024

Conversation

dhickie
Copy link
Contributor

@dhickie dhickie commented Aug 23, 2024

This resolves #3257 by introducing the concept of a message producer factory for each supported message transport, implementing the new IAmAMessageProducerFactory interface. It also introduces the CombinedProducerRegistryFactory, which takes any number of IAmAMessageProducerFactory implementations to its constructor, and produces a ProducerRegistry containing all of the producers created by those factories.

This makes it possible to publish to multiple message transports from a single Brighter instance, without having to construct and then combine separate producer registries, each of which could fall out of scope and result in exceptions.

dhickie and others added 3 commits August 28, 2024 13:03
# Conflicts:
#	src/Paramore.Brighter.MessagingGateway.AzureServiceBus/AzureServiceBusMessageProducerFactory.cs
@iancooper iancooper merged commit 15b3b16 into BrighterCommand:master Aug 29, 2024
17 of 18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] Combining producer registries results in AccessViolationException instances for Kafka producers
2 participants