Tools, FAQ, Tutorials:
'wait' Policy Statement
How to use the "wait" Policy statement to make multi-threading calls for an Azure API service operation?
✍: FYIcenter.com
The "wait" Policy Statement allows you to make multi-threading calls
to external systems.
The "wait" statement has the following syntax:
<wait for="all|any">
<send-request .../>
<send-request .../>
...
</wait>
If for="any" is specified, the "wait" statement ends if any one of the child calls ends.
If for="all" is specified, the "wait" statement ends if all child calls end.
For example, the following policy makes two web service calls simultaneously and waits for both of them to finish:
<wait for="all">
<send-request mode="new" response-variable-name="response1">
<set-url>http://dev.fyicenter.com/api/users/101</set-url>
<set-method>GET</set-method>
</send-request>
<send-request mode="new" response-variable-name="response2">
<set-url>http://dev.fyicenter.com/api/orders/202</set-url>
<set-method>GET</set-method>
</send-request>
</wait>
⇒ 'set-status' Policy Statement
⇐ 'send-one-way-request' Policy Statement
2018-01-13, ∼3121🔥, 0💬
Popular Posts:
How to start Docker Daemon, "dockerd", on CentOS systems? If you have installed Docker on your CentO...
Where to see some Examples of Invalid JSON Values? Here are some Examples of Invalid JSON Values: 1....
How To Change Text Fonts for Some Parts of a Paragraph? If you want to change text fonts or colors f...
How to create a "Sign-up or Sign-in" user flow policy in my Azure AD B2C directory? If you want to b...
How to create the Hello-3.0.epub package? I have all required files to create Hello-3.0.epub. To cre...