Onion-architecture-ASP.NET-Core icon indicating copy to clipboard operation
Onion-architecture-ASP.NET-Core copied to clipboard

[Need Explanation] Confusion on CustomExceptionMiddleware ?

Open aloksharma1 opened this issue 4 years ago • 2 comments

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

aloksharma1 avatar Mar 27 '21 10:03 aloksharma1

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 avatar Mar 28 '21 05:03 Amitpnk

@Amitpnk thanks for the clarification.

Folivi95 avatar Apr 27 '21 07:04 Folivi95