Custom Call Handler & DI

Oct 21, 2008 at 1:53 AM
I've developed a custom PIAB call handler defined with a [CustomCallHandlerData] attribute. The class requires other dependency items (such as an Ilogger) how can I inject this value as part of the creation process. Do I vae to write a custom assembler?
Oct 21, 2008 at 6:10 PM
I recommend asking this question in the EntLib or EntLibContrib Discussion groups as they are associated with the Policy Injection Application Block.

There are 5 samples in the EntLib Contrib Project on writing custom call handlers that may help answer your question.


Patterns & Practices Guidance

Oct 21, 2008 at 6:28 PM
Using straight PIAB this is extremely difficult. However, one of the changes we made in the (soon to release) Unity 1.2 interception mechanism is to build call handlers through the container. As a result, you can simply slap [Dependency] attributes on the stuff you care about and it'll just work.

Examples coming soon.