Coder Social home page Coder Social logo

Comments (5)

PandaCuipp avatar PandaCuipp commented on August 15, 2024 2

感谢

from webapiclient.

EzrealJ avatar EzrealJ commented on August 15, 2024

你好,请参阅文档
https://webapiclient.github.io/guide/retry.html

from webapiclient.

EzrealJ avatar EzrealJ commented on August 15, 2024

结合异常处理章节的内容可以处理更多场景
https://webapiclient.github.io/guide/exception-process.html

from webapiclient.

PandaCuipp avatar PandaCuipp commented on August 15, 2024

谢谢,使用Retry可以解决我的问题。麻烦的是我需要在每个IHttpApi被调用的地方加相同的Retry代码。
有没有全局统一加Retry的方案 (^_^)

from webapiclient.

EzrealJ avatar EzrealJ commented on August 15, 2024

WebApiClientCore 本身是HttpClient的增强 所以你仍然可以使用Microsoft.Extensions.Http.Polly 配置HttpClient的重试,这并不影响WebApiClientCore ,你可以参阅Microsoft.Extensions.Http.Polly的文档

from webapiclient.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.