Tools, FAQ, Tutorials:
Use Custom Variables in Policy Expressions
How to use custom variables created by "set-variable" statements in policy expressions?
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
â‡ 'set-variable' Statement to Create Custom Variables
2018-01-24, 1772👍, 0💬
How to use the XML to JSON Conversion Tool at freeformatter.com? If you want to try the XML to JSON ...
How To Loop through an Array without Using "foreach" in PHP? PHP offers the following functions to a...
How to view API details on the Publisher Dashboard of an Azure API Management Service? You can follo...
How to add images to my EPUB books Images can be added into book content using the XHTML "img" eleme...
Can You Add Values to an Array without Keys in PHP? Can You Add Values to an Array with a Key? The a...