Enterprise Library 4.0開發計劃

TerryLee1109發表於2009-01-08

近日,微軟模式與實踐團隊釋出了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

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/12184684/viewspace-531837/,如需轉載,請註明出處,否則將追究法律責任。

相關文章