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, 2636🔥, 0💬
Popular Posts:
What Is Azure API Management Service? Azure API Management as a turnkey solution for publishing APIs...
How to decode the id_token value received from Google OpenID Connect authentication response? Accord...
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 Protect Special Characters in Query String in PHP? If you want to include special characters ...
What is Azure API Management Publisher Dashboard? Azure API Management Publisher Dashboard is an Azu...