Tools, FAQ, Tutorials:
Use Custom Variables in Policy Expressions
How to use custom variables created by "set-variable" statements in policy expressions?
✍: FYIcenter.com
If you want to access custom variables created by "set-variable" statements,
you can use the IReadOnlyDictionary object through "context.Variables".
For example, the following policy creates a custom variable during the inbound processing step and used it in the output processing step:
<inbound> <set-variable name="method" value="@(context.Request.Method)"/> </inbound> <outbound> <trace source="DEBUG">@(context.Variables["method"])</trace> </outbound>
⇒ 'choose ... when ...' Statements to Control Execution Flows
2018-01-24, 2796🔥, 0💬
Popular Posts:
How To Copy Array Values to a List of Variables in PHP? If you want copy all values of an array to a...
How to reinstall npm with a node version manager? I am getting permission errors with the current ve...
What is the "__init__()" class method? The "__init__()" class method is a special method that will b...
How to install "C++/CLI Support" component in Visual Studio? I need to build my Visual Studio C++/CL...
How to reinstall npm with a node version manager? I am getting permission errors with the current ve...