Skip to content

Place and use of MediatR code and Specification code #42

@hansmbakker

Description

@hansmbakker

Hi,

thank you for this great starter repository and for the series of blog articles! I'm still finding my way how to best structure a DDD/CQRS project and your content is really helpful for that.

I was hoping you could help me understand the place and use of the MediatR code and Specification code better.

You put the Specifications in the Core (domain model) project; this seems similar to how the blog I linked above puts Queries in its Domain project.

  • shouldn't the CosmosDbSpecificationEvaluator be in the Infrastructure project then, given that that is likely going to be a specific implementation?
  • I see MediatR being used in the Web API project, and Specifications being used in the Functions project. Can you please explain something about when you choose to use MediatR, and when you choose to use Specifications?

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