Pass Parameter to Policy Injection Call Handler?

Topics: Building and extending application blocks, Enterprise Library Core, Policy Injection Application Block
May 29, 2008 at 8:29 AM
Is it possible to pass a parameter from a value in the function to it's own created Policy Injection Call handler?

May 29, 2008 at 9:08 AM
You can get the input parameters via the input.Inputs, which return an IParameterCollection instance.
May 29, 2008 at 10:51 AM
But could I retrive the value in the function and pass it to Policy Injection Call Handler ?


public Execute()
   int a;
   a= CheckFunc();

Could I pass the variable a to the Call Handler?
May 29, 2008 at 11:11 AM
PIAB is implemented via Method Invocation Interception, so call handler can extract information (such as parameter list, target object etc.) from invocation message only, method can not pass variable to call handler.