Skip to content

Modular Monolith support #216

@R4ND3LL

Description

@R4ND3LL

A while back I tried to implement this mediator in a modular system where:

  • Contracts project has mediator request objects
  • Module project has mediator handlers, marked internal
  • we have various front end executables (desktop, web) that dynamically load the modules at startup (like plugins).

This mediator hit a major roadblock with this app configuration, as I recall, stemming from how the EXE that does "AddMediator" contains all the generated source, and therefore, must know about all the modules that will be used up front. I think the handlers also had to be public for that reason.

Is this still the case in v3.0, or is this kind of app configuration supported?

From what I understand, the source generation would have to happen in each module (handler owner), and the mediator services registered on startup would have to support multiple modules each with their own generated source.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions