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
In a modular monolith setup, I have two modules that don’t reference each other directly. All request/response contracts are defined in a shared “Contracts” assembly. For example, Module A may send a request that is handled inside Module B, but the request type itself lives in the Contracts project.
How should I configure code generation / request handler discovery so that the request handlers located in Module B’s assembly are correctly found and wired up, even though the request type is defined in the Contracts assembly and the modules do not reference each other? The only way things seem to work is the request has to have a handler in the same assembly.
In short: How do I enable cross-module request handling when requests live in a shared contract assembly, but handlers live in separate feature modules that do not reference each other?
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
Uh oh!
There was an error while loading. Please reload this page.
-
In a modular monolith setup, I have two modules that don’t reference each other directly. All request/response contracts are defined in a shared “Contracts” assembly. For example, Module A may send a request that is handled inside Module B, but the request type itself lives in the Contracts project.
How should I configure code generation / request handler discovery so that the request handlers located in Module B’s assembly are correctly found and wired up, even though the request type is defined in the Contracts assembly and the modules do not reference each other? The only way things seem to work is the request has to have a handler in the same assembly.
In short: How do I enable cross-module request handling when requests live in a shared contract assembly, but handlers live in separate feature modules that do not reference each other?
Beta Was this translation helpful? Give feedback.
All reactions