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, 2971🔥, 0💬
Popular Posts:
What is the "__init__()" class method? The "__init__()" class method is a special method that will b...
How to use the "find-and-replace" Policy Statement for an Azure API service operation? The "find-and...
dev.FYIcenter.com is a Website for software developer looking for software development technologies,...
How to Install Docker Desktop 2.5.0 on Windows 10? You can follow this tutorial to Install Docker De...
What Is Azure API Management Service? Azure API Management as a turnkey solution for publishing APIs...