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, ∼3518🔥, 0💬
Popular Posts:
What are "*..." and "**..." Wildcard Parameters in Function Definitions? If you want to define a fun...
What is test testing area for? The testing area is provided to allow visitors to post testing commen...
How to add request body examples to my Azure API operation to make it more user friendly? If you hav...
How to use the XML to JSON Conversion Tool at freeformatter.com? If you want to try the XML to JSON ...
Where to see some Examples of Invalid JSON Values? Here are some Examples of Invalid JSON Values: 1....