How to set the timeout time for API calls? #1112
-
polly.Timeout.TimeoutRejectedException:“The operation didn't complete within the allowed timeout of '00:00:30'.” |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
In your ServiceDefaults project, there's a line like: http.AddStandardResilienceHandler(); You can modify that line, add lines, etc. to configure whatever retry policy settings you like. |
Beta Was this translation helpful? Give feedback.
-
I'll close this as answered, please reopen if not. |
Beta Was this translation helpful? Give feedback.
-
Additional: Different strategies can be set for the specified API in this way
|
Beta Was this translation helpful? Give feedback.
In your ServiceDefaults project, there's a line like:
You can modify that line, add lines, etc. to configure whatever retry policy settings you like.