惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

N
Netflix TechBlog - Medium
V
Vulnerabilities – Threatpost
Google Online Security Blog
Google Online Security Blog
Hugging Face - Blog
Hugging Face - Blog
L
LINUX DO - 热门话题
云风的 BLOG
云风的 BLOG
P
Proofpoint News Feed
D
Docker
C
Cyber Attacks, Cyber Crime and Cyber Security
MyScale Blog
MyScale Blog
P
Palo Alto Networks Blog
T
Tenable Blog
P
Privacy International News Feed
Google DeepMind News
Google DeepMind News
小众软件
小众软件
Cisco Talos Blog
Cisco Talos Blog
aimingoo的专栏
aimingoo的专栏
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
A
Arctic Wolf
C
Cybersecurity and Infrastructure Security Agency CISA
C
Cisco Blogs
T
Threat Research - Cisco Blogs
NISL@THU
NISL@THU
The Hacker News
The Hacker News
Project Zero
Project Zero
AWS News Blog
AWS News Blog
Simon Willison's Weblog
Simon Willison's Weblog
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
T
Threatpost
V
Visual Studio Blog
The GitHub Blog
The GitHub Blog
The Cloudflare Blog
Last Week in AI
Last Week in AI
Jina AI
Jina AI
Cyberwarzone
Cyberwarzone
The Register - Security
The Register - Security
C
CXSECURITY Database RSS Feed - CXSecurity.com
Vercel News
Vercel News
D
Darknet – Hacking Tools, Hacker News & Cyber Security
MongoDB | Blog
MongoDB | Blog
U
Unit 42
Scott Helme
Scott Helme
A
About on SuperTechFans
WordPress大学
WordPress大学
F
Fortinet All Blogs
大猫的无限游戏
大猫的无限游戏
G
GRAHAM CLULEY
Latest news
Latest news
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
S
Schneier on Security

博客园 - 吴博

C#类型 参考表(MSDN) 快速了解集群和双机热备相关知识 Could not find stored procedure 'sp_MSins_tablename' Javascript 判断 object 的特定类 当 ASP.NET 在 IIS 6.0 中锁死的情况下,如何生成转储文件 通往 WinDbg 的捷径 请教:在一个在方法段的异常处理里面,如何获取当前方法输入的所有参数值。 性能测试VS负载测试VS压力测试 Silverlight为什么不支持中文?有没有别的途径可以解决这个问题呢? 焦油坑与激情 sqlserver白皮书里的秘密 没有virtual的方法子类是否可以重写? 用记事本可以查看dll文件的release或debug依赖。 VC++.NET 2005 几个比较难缠的问题及其解决方法(转) [zt]关于Debug和Release之本质区别的讨论 vc++,不知道是不是bug。 MSMQ之确认消息 Overried与new 分区表的经典比喻
乱解
吴博 · 2007-08-30 · via 博客园 - 吴博

以前见到Petshop,在IDE的解决方案目录,分作好几个项目。

其中不乏将接口独立成一个项目的(即使可以在同一个项目写编写它的实现)。

刚在写一个接口时突然领悟到:这样做是否是可以避免项目循环引用?
--------------

补充:接口与实现独立出来后,还需要添加一个工厂才可以避免循环引用问题,麻烦了些。

最后采取的方法是:不采用工厂,接口实现类直接引用dal,而非bll。然后bll就可以引用接口实现。

也就是把接口的实现,与实现dal的bll看做是同一层,似乎也说得过去,因为接口的实现也是业务。

那为什么不把接口的实现直接放在bll项目里呢?由于分工的明确性,所以还是分开好了。