I followed these steps:
1. I created a new custom exception handler implementing IExceptionHandler interface.
2. I added the Exception Handling Application Block to my config file and added a new Policy called "Mypolicy" to catch all type Exception
3 I defined that this policy was managed by the custom exception that was created in the step 1.
4 I added the Policy Injection Application Block to may config file and created a new policy. As "Handlers" I selected "Exception Handling Handler" and defined "Mypolicy" as ExceptionPolicy in the atributes of the "Handlers"
When I run the aplication and create a new exception, the custom exception handler that was created catch the exception through the HandleException method, but this method has not access to the input parameters value.
----- Original Message -----
From: [email removed]
To: [email removed]
Sent: Friday, April 03, 2009 9:39 AM
Subject: Re: Custom ExceptionHandler & Policy Injection App [entlib:52098]
The input parameters are available in the IMethodInvocation input parameter in the Invoke method of your custom handler. You can access them through the Arguments property.
Global Technology & Solutions