I would like to use Exception handling application block in my project, in particular WCF exception shielding.
I suppose I would have two exception handling policies - Development and Production with different purposes and different handlers (the Production one with clearing some sensitive data).
When I setup these two policies I want to change policy only in configuration file (no code recompile). In case o standard catching syntax mechanism (ExceptionPolicy.HandleException(ex, "MyPolicy"))
I am able to retrieve policy name before calling HandleException (retrieve manually from application configuration).
In case of WCF exception shielding I have to use atrribute [ExceptionShielding("MyPolicy")] but I am not able to set policy name dynamically (again reading from conf. file).
Is there any solution to this problem? For example setting default exception handling policy directly in configuration file so I don´t have to specify policy name in code?