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, 2414🔥, 0💬
Popular Posts:
How to detect errors occurred in the json_decode() call? You can use the following two functions to ...
Where to find tutorials on OpenID? Here is a large collection of tutorials to answer many frequently...
FYIcenter JSON Validator and Formatter is an online tool that checks for syntax errors of JSON text ...
How to access URL template parameters from "context.Request.Matched Parameters"object in Azure API P...
How To Read Data from Keyboard (Standard Input) in PHP? If you want to read data from the standard i...