I'm using clean architecture in asp.net core
where should I put the extensions method folder
CodePudding user response:
It depends which dependencies this code would create. Generally speaking:
- put as less code as possible in the outer most layer/circle
- strictly follow the dependency rule
- keep your business logic free from "painful dependencies" (external frameworks, IO)
A more detailed discussion on where to put code in Clean Architecture can be found here: https://www.youtube.com/watch?v=7-IEhM6uiUU&t=12s