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, ∼3819🔥, 0💬
Popular Posts:
Where to find tutorials on Using Azure API Management Developer Portal? Here is a list of tutorials ...
How to use the JSON to XML Conversion Tool at utilities-online.info? If you want to try the JSON to ...
How to login to Azure API Management Publisher Dashboard? If you have given access permission to an ...
How To Pass Arrays By References? in PHP? Like normal variables, you can pass an array by reference ...
How To Move Uploaded Files To Permanent Directory in PHP? PHP stores uploaded files in a temporary d...