Allen Wang

专注web开发
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

Policy Injection Application Block

Posted on 2007-03-20 17:03  AllenWang.NET  阅读(514)  评论(0编辑  收藏  举报

Policy Injection Application Block

NEW! This release of Enterprise Library includes a new Policy Injection Application Block. The implementation in the February 2007 CTP is still incomplete, and not all of the features described in the included documentation are implemented at this time.

The Policy Injection Application Block is designed to simplify the separation of business logic from cross cutting concerns, by letting you define policies and the objects/methods they apply to in a declarative way. Each policy contains a pipeline of "handlers" that are executed before and after a policy-enabled method is called. The Policy Injection Application Block will provide handlers that wrap several Enterprise Library application blocks, including validation, logging, authorization and caching.

This preview of the Policy Injection Application Block includes the following components:

·         PolicyInjection façade class, allowing you to create instances of policy-enabled objects

·         Remoting Proxy-based interception mechanism

·         Runtime support for configuration of policies

·         A near-complete library of Matching Rule classes

·         Handlers for Validation, Logging and Exception Handling

Features not included in this release but planned for the final release include the following:

·         Design-time configuration support

·         Instrumentation

·         Handlers for Performance Counters, Authorization and Caching

·         QuickStart samples

For more information on the Policy Injection Application Block, refer to the included documentation and the following blog posts:

·         Announcing the Policy Injection Application Block

·         Policy Injection Application Block - Behind the Scenes



More ways to inject policies

.NET Community Downloads and Sample Code