Domain Events - get notified outside of application layer #438
Answered
by
Eagleleader
Eagleleader
asked this question in
Q&A
-
Hi all, I've tried to get notified of the domain event in an API using the Application layer.
I'm new to this approach and I don't see what I'm doing wrong here. |
Beta Was this translation helpful? Give feedback.
Answered by
Eagleleader
Sep 16, 2021
Replies: 1 comment 1 reply
-
Answer is : just add the MediatR into the services of the API : |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Eagleleader
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Answer is : just add the MediatR into the services of the API :
services.AddMediatR(Assembly.GetExecutingAssembly());
As my API currently uses the application layer and uses the Dependency Injection configured into that APP Layer, everything is communicating all together.