这是我第一次尝试实施洋葱架构。
AppService -> folder for the abstractions for the entire Application
Business -> Business logic using the abstractions in the Core project
DataService -> folder for abstractions that are implemented in the DataAccess project
Model -> Entities used by the application
WebService -> folder for abstractions that are implemented in the WebAccess project
提前致谢。
答案 0 :(得分:1)
DependencyRegistrar
似乎没必要。依赖性解决方案的责任是将抽象映射到实现。除了生活在Domain和DependencyRegistrar
中的依赖性解析之外,它似乎很好。具体情况取决于您认为最好的。