Onion-architecture-ASP.NET-Core
Onion-architecture-ASP.NET-Core copied to clipboard
[Need Explanation] Confusion on CustomExceptionMiddleware ?
Hello, in your template you have defined CustomExceptionMiddleware class in both service & infrastructure layer, now i am unable to understand where should i put my other middlewares and why do we need it in both places? or is it infra calling service layer?
please help
hi @aloksharma1 ,
Thank you for noticing to me, we need to add CustomExceptionMiddleware class in service layer. It was duplicate in infra layer. Will fix and refactor it
Regards, Amit Naik
@Amitpnk thanks for the clarification.