Monday, March 26, 2007

Policy injection Application Block

In the Enterprice Library 3.0 there are a new application block, Policy Injection Appliction Block (PIAB). This is very cool. Now you can write policies in your config file.

As David Hayden explains it "Put simply, the Policy Injection Application Block can save you from having to write all those boring validation, security, exception handling, and security-related code and instead allow you to write policies in your configuration file associated with them. These policies can then be mapped to classes in your application based on matching rules. The matching rules can match a policy to an entire assembly, a namespace, types, methods, method signatures, etc."

Read more about it in David Hayden's blog and in Tom Hollander's blog.

No comments: