Enterprise Library 4.0开发计划

近日,微软模式与实践团队发布了Enterprise Library 4.0的开发计划,最大的变化就是加入了依赖注入,在之前的推荐系列中我也曾经介绍过,暂定名称为DIAB(Dependency Injection Application Block),除此之外主要的变化有:

支持Visual Studio 2008

解决了VAB和PIAB中的一些缺陷

对Caching Application Block提供了一些扩展

Logging Application Block性能提升

在VAB中支持WPF的验证

......

全文如下:

Introducing a lightweight Dependency Injection container (also known as DIAB for now; the name will change) (prioritized uber-stories)
Primary goals: make p&p assets more container-friendly and more easily consumable; stimulate the use of dependency injection for building modular, loosely-coupled apps.

  1. Provide a reusable dependency injection container with convenient, non-invasive API (incl. support for constructor injection, property injection, method call injection)
  2. Support imperative configuration of DI container (via API)
  3. Support declarative configuration of DI container (via config files)
  4. Solid documentation – leveraging DI container to build loosely-coupled apps and improve their testability and maintainability – not just API docs (including: conceptual overview, quickstart, demos, hands-on labs)
  5. Enable container hierarchy
  6. Optimize performance of DI container
  7. Support imperative configuration extensibility of DI Container
  8. Support declarative configuration extensibility of DI Container
  9. Update EL configuration tool (both standalone and VS-integrated) to configure DI Container
  10. Provide intuitive installers (two packages: DIAB standalone; DIAB integrated with EntLIB; incl. side-by-side scenarios)
  11. Once refactored, compat-test refactored blocks on other containers (Castle, Spring.NET, etc.)
  12. Provide a simpler version of the EventBroker (support scenario: I want to use my Web service and to use DI to automatically wire it up when created with logging, exception handling etc.)

Enterprise Library enhancements to the current application blocks (prioritized stories)
Primary goal: make the lives of EntLib users easier.
  1. Ensure EL compatibility with VS2008 (incl. block factory; backwards compatible with .NET3.0 and VS2005, and support side-by-side scenario).
  2. Provide extensibility points for Caching Block to allow alternate caching implementations (including distributed cache providers) to be plugged in. The objective here is NOT to replace the ASP.NET caching but to provide more choices.
  3. Integrate WMI2 Support (pull it out of the core and make both WMI1 and WMI2 available according to the targeted .NET framework (if it's <3.0, it's WMI1; if it's 3.5, it's WMI2)
  4. Support partially-trusted callers (requires a full security review).
  5. Improve performance of the Logging Block by optimizing text formatter (lazy formatting in case of the local logger, and eager formatting in case of the remote logger).
  6. Enhance logging flat file functionality of the Logging Block: roll on period boundaries (with the period inferred from the pattern specified for the logging file).
  7. Improve documentation on how to avoid configuration pitfalls.
  8. Provide more descriptive error messages.
  9. Hands-on Labs: Validation Block, Policy Injection Block, Dependency Injection Block.
  10. Fix exception formatter when using the indexer.
  11. Allow to run multiple rulesets in Validation block.
  12. Refactoring PIAB: allow to control the order of how handlers are applied.
  13. Caching Block: expiring items when subjected to load.
  14. PIAB+VAB: Eliminate combining the results of searching attributes and config into an AndCompositeValidator without checking if either of those is null.
  15. PIAB fix: deal with race conditions in PolicySet.
  16. VAB: allow copying of existing rules in the config tool.
  17. LAB: allow finer-grained local filters in the config tool.
  18. Instrumentation: provide absolute values for performance counters.
  19. Instrumentation: enable performance counters to work on IIS.
  20. VAB: include WPF validation.
  21. VAB: provide a light-weight type picker.
  22. LAB: provide a way of checking if something was logged or not.

详情大家可以访问:http://www.codeplex.com/entlib/Wiki/View.aspx?title=EntLib4%20Backlog

作者:TerryLee
出处:http://terrylee.cnblogs.com
本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。
posted @ 2008-01-09 20:49 TerryLee 阅读(4707) 评论(16)  编辑 收藏 网摘 所属分类: [10]  模式与实践

  回复  引用  查看    
#1楼 2008-01-09 22:54 | jillzhang      
ms的更新速度真是无敌了
  回复  引用    
#2楼 2008-01-09 23:34 | coley [未注册用户]
无语了,真是有钱人多就是屌....
  回复  引用  查看    
#3楼 [楼主]2008-01-09 23:56 | TerryLee      
@jillzhang
EL也得跟上啊,否则没法支持VS2008
  回复  引用  查看    
#4楼 [楼主]2008-01-09 23:56 | TerryLee      
@coley
:)
  回复  引用  查看    
#5楼 2008-01-10 09:36 | overred      
el4应该还有别的新鲜玩意吧 lee哥?呵呵
  回复  引用  查看    
#6楼 [楼主]2008-01-10 12:01 | TerryLee      
@overred
似乎除了DIAB之外,不会加入新的东西,会在原来的应用程序块基础上做一些改进
  回复  引用  查看    
#7楼 2008-01-10 17:47 | overred      
@TerryLee
啊呜
呵呵
  回复  引用  查看    
#8楼 2008-01-11 09:50 | Nathan 暴      
@TerryLee

我想请教一下,我用EL3.1的时候遇到一个问题,老是连接池超出最大限制。不是说EL会自动把Reader关掉吗?
我用这样的语句,SqlDataReader reader = (SqlDataReader)db.ExecuteReader(selectcmd);还需要再写reader.Close()吗?如果这是个类的方法,后面有个return reader;的话,我在.cs的页面里怎么关闭啊。

  回复  引用    
#9楼 2008-01-11 10:06 | Soso729 [未注册用户]
@TerryLee 大哥
请问Enterprise Library适用于.net winform还是web开发?
如果两者都可以的话,在配置或代码中有什么不同?
我才知道这个,有很多不明白的地方,请多指教,谢了
  回复  引用  查看    
#10楼 [楼主]2008-01-11 12:25 | TerryLee      
@Nathan 暴
建议你最好放在using里面
using ()
{
//......
}
  回复  引用  查看    
#11楼 [楼主]2008-01-11 12:26 | TerryLee      
@Soso729
这个没有什么区别,做Web开发或者WinForm开发都可以

两者的配置是一样的,在Web.config或者App.config中。
  回复  引用  查看    
#12楼 2008-02-05 18:57 | KKcat      
我也才学习,关注楼主中...
  回复  引用  查看    
#13楼 2008-02-05 18:57 | KKcat      
刚忘了问,08中不知道能用这个东西么?
  回复  引用    
#14楼 2008-06-19 16:48 | ou [未注册用户]
谁能系统的讲解一下Enterprise Library 4.0那,我怎么看的糊涂啊。。。。

  回复  引用  查看    
#15楼 2008-08-27 08:58 | 涛涛      
能否为小弟说明一下Validation Application Block实现原理啊?花了很大精力也没弄明白Validation Application Block实现原理!
  回复  引用  查看    
#16楼 [楼主]2008-08-27 09:45 | TerryLee      
@涛涛
等有机会专门写一篇文章吧,其实主要就是利用了Attribute。

标题  
姓名  
主页
Email (博主才能看到) 
验证码 *  看不清,换一张 [登录][注册]
内容(请不要发表任何与政治相关的内容)  
  登录  使用高级评论  新用户注册  返回页首  恢复上次提交      
该文被作者在 2008-01-20 12:41 编辑过
Google站内搜索



相关文章:


相关搜索:
Enterprise Library Unity 模式与实践

相关链接: