You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I'm trying to set up Rebus for a new project, a modular monolith, where I configure all subscribers in the same ServiceCollection.
This doesn't seems to be supported?
What I'm struggling with is the registrations of the event handlers, they are registered directly on the service collection and not on the bus configuration. Thereby I can't have different handlers for the same event in different modules.
I see in the examples using the Activator "pattern" the handler is registered together with the bus configuration. Is there some way I can accomplish the same with the ServiceProvider extensions without creating several hosts?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I'm trying to set up Rebus for a new project, a modular monolith, where I configure all subscribers in the same ServiceCollection.
This doesn't seems to be supported?
What I'm struggling with is the registrations of the event handlers, they are registered directly on the service collection and not on the bus configuration. Thereby I can't have different handlers for the same event in different modules.
I see in the examples using the Activator "pattern" the handler is registered together with the bus configuration. Is there some way I can accomplish the same with the ServiceProvider extensions without creating several hosts?
Beta Was this translation helpful? Give feedback.
All reactions