PIAB/Unity Integration

Topics: Service Factory Modeling Edition Forum
Sep 2, 2009 at 12:51 AM

I have seen a couple of articles (David Hayden does a great job on this) on integrating components and services (generated with the WSSF) and EntLib (mostly piab) integration.  I was wondering how (the approved way) to inject policies (logging, exception handling and perfomance counters) on a namespace/method/etc. AND the service (or is that a bad thing) itself?

I have VS 2008 and October 2008 release of EntLib.

Any help would be greatly appreciated.

Sep 2, 2009 at 1:52 AM


Did you check the The EntLib 4.0 Policy Extensions contrib project? You may find there some ideas on how to add these extensions using PIAB and WSSF.

From the summary info in the contrib home page:

The goal of these extensions is to simplify the task of integrating PIAB (Policy Application Block) and WCF by providing some features like, design time support for applying policies to services, generating a host config with all the required sections that points to the specified entlib config file and implementing a WCF behavior that abstracts you from wrapping or creating objects using the PIAB factory.