避免循环依赖 [英] Avoiding circular dependancy

查看:120
本文介绍了避免循环依赖的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有5个项目的解决方案
a
b
c
d
e


c,d,e取决于a和b.从a或b中,我如何使用不具有循环依赖性的c,d和e方法?

I have a solutions with 5 projects
a
b
c
d
e


c,d,e are dependant on a and b. from a or b how can i use methods of c,d,and e without circular dependency?

推荐答案

您在这里遇到了设计问题.您将必须重组代码以实现此目的.由于我们不了解真正的功能以及无法完成的工作,因此很难提供帮助.

可以肯定的是,您不能在应用程序a中的应用程序c中使用该方法.
You have got a design issue here. You will have to restructure the code to achieve this. Since we are not aware of the true functionality and what can or cannot be done, it is going to be difficult to help.

One thing is sure though, you cannot use the method in application c in application a.


这篇关于避免循环依赖的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆