¿Why are Mediatr request in the application layer? #743
Answered
by
fretje
MatthiasMuller
asked this question in
Q&A
|
As I learned in the last months, Application project should contain only the implementations of what the request should do. In this boilerplate the application layer contains all the mediatr request and the logic behind them. Thank you for your response. |
Answered by
fretje
Jul 14, 2022
Replies: 1 comment 1 reply
|
Not sure what you mean... where else would you put them? It's definitely possible to put the requests in a separate "shared" library (so they can potentially be used by the front-end as well), but then they would still be part of "application", as application would still need to have a reference to them to be able to implement them. Remember, references (or dependencies) can only point "inward". |
1 reply
Answer selected by
MatthiasMuller
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Not sure what you mean... where else would you put them? It's definitely possible to put the requests in a separate "shared" library (so they can potentially be used by the front-end as well), but then they would still be part of "application", as application would still need to have a reference to them to be able to implement them. Remember, references (or dependencies) can only point "inward".