Comments (5)
感谢
from webapiclient.
你好,请参阅文档
https://webapiclient.github.io/guide/retry.html
from webapiclient.
结合异常处理章节的内容可以处理更多场景
https://webapiclient.github.io/guide/exception-process.html
from webapiclient.
谢谢,使用Retry可以解决我的问题。麻烦的是我需要在每个IHttpApi被调用的地方加相同的Retry代码。
有没有全局统一加Retry的方案 (^_^)
from webapiclient.
WebApiClientCore 本身是HttpClient的增强 所以你仍然可以使用Microsoft.Extensions.Http.Polly 配置HttpClient的重试,这并不影响WebApiClientCore ,你可以参阅Microsoft.Extensions.Http.Polly的文档
from webapiclient.
Related Issues (20)
- net6+增加全局默认timeout怎么设置哈,现在接口都是默认100秒超时 HOT 5
- 如何使用?
- 如何设置请求http版本? HOT 2
- 禁用日志 HOT 1
- 使用Prism TryIoc 依赖注入环境下, 如何注册IHttpApi 的生成实例方法 HOT 3
- 特性JsonTent问题 HOT 1
- JsonContent 特性问题 HOT 1
- JsonContent 特性问题 HOT 2
- The relative expiration value must be positive. (Parameter 'AbsoluteExpirationRelativeToNow') Actual value was -00:00:10. HOT 1
- 是否考虑支持接口转发的功能 HOT 5
- .net 7.0 Console程序怎么使用该组件? HOT 2
- .net 7.0的Console程序提示不支持将ContentType为 text/html 的内容转换为对象 HOT 3
- 生成上传文件代理时,找不到FileParameter参数。
- 参数为实体类时是否有Attribute可用于自定义字段名 HOT 4
- TimeOut action属性和Param属性 设置之后都不起作用 无论设置多少都是60秒超时 HOT 2
- WriteLog方法BUG。 HOT 2
- 如何处理超时异常 HOT 2
- 请问 HttpApiClient.Create<T>() 还支持吗? HOT 1
- 请求执行时出现SocketException,是否考虑将HttpContext也抛出
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webapiclient.