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, 2413🔥, 0💬
Popular Posts:
What are "*..." and "**..." Wildcard Parameters in Function Definitions? If you want to define a fun...
How to login to the Developer Portal internally by you as the publisher? Normally, the Developer Por...
How to Build my "sleep" Docker image from the Alpine image? I want the container to sleep for 10 hou...
How to install "C++/CLI Support" component in Visual Studio? I need to build my Visual Studio C++/CL...
How To Break a File Path Name into Parts in PHP? If you have a file name, and want to get different ...