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

Added support for multiple bus handlers within a single IoC container #21

Closed

Conversation

kendallb
Copy link
Contributor

Added support for multiple handlers in a single container so you can use the same IoC pipeline to send messages to multiple queues, and process those messages from multiple queues within the same IoC container with different threads. It works by using type based routing and excluding handlers except those that are derived from the types you want in each queue.


Rebus is MIT-licensed. The code submitted in this pull request needs to carry the MIT license too. By leaving this text in, I hereby acknowledge that the code submitted in the pull request has the MIT license and can be merged with the Rebus codebase.

@kendallb kendallb force-pushed the feature/multiple-bus-handlers branch from 2731d33 to 3aee1ee Compare February 20, 2021 01:15
@kendallb
Copy link
Contributor Author

Note, this will need this PR to be built and deployed with the main Rebus project in order to be able to build. I am doing my own personal build for the moment to use it.

rebus-org/Rebus#942

https://www.nuget.org/packages/AMain.Rebus/

@kendallb kendallb force-pushed the feature/multiple-bus-handlers branch from ab7093d to 7913c1a Compare February 20, 2021 03:02
@kendallb kendallb force-pushed the feature/multiple-bus-handlers branch from 7913c1a to f2a3d1f Compare February 20, 2021 03:36
@mookid8000
Copy link
Member

Hi @kendallb , I appreciate your work, but this is reaching a bit too far at the moment.

I'm contemplating how to add support for hosting multiple bus instances in the https://github.com/rebus-org/Rebus.ServiceProvider package, which is pretty similar to the Autofac integration.

When I narrow in on a design there, I'm ready to talk about how to do it with Autofac too, so I'm closing this PR for now. 😐

@mookid8000 mookid8000 closed this Feb 21, 2021
@kendallb
Copy link
Contributor Author

Sounds good. The solution I built works for what I need at the moment but it’s still a work in progress. When you settle on a design for service provider I can reimplement it the same way for autofac for consistency.

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.

2 participants