Circular Dependency Solution

前端 未结 3 1364
遥遥无期
遥遥无期 2020-12-31 08:28

Our current project has ran into a circular dependency issue. Our business logic assembly is using classes and static methods from our SharedLibrary assembly. The SharedLibr

3条回答
  •  情歌与酒
    2020-12-31 09:20

    One solution would be to put a facade pattern in between. Here you would avoid direct access/dependency to your business objects from the shared library. Instead, you would be using a layer that acts as a facade between your lib and BOs. This way you can pack your shared libraries clean and decoupled.

提交回复
热议问题