Git Product home page Git Product logo

Comments (6)

rynowak avatar rynowak commented on September 23, 2024 1

PR out for this, let me know what you think #82

from httpclientfactory.

martincostello avatar martincostello commented on September 23, 2024

Just as an update to the above, eventually I found IHttpMessageHandlerBuilderFilter which let me configure the handler order exactly as I wanted for the test setup, and now the implementation for setting up GitHub using this library in both our sample application and its tests is very neat. 👍

from httpclientfactory.

rynowak avatar rynowak commented on September 23, 2024

Hi sorry for the delay in getting to this, I was out for a few days...

We didn't do this because you're typically in startup code at this point, and you have access to configuration directly. Looking through your code sample, I now see what you're talking about.

Is the conclusion here that you still think we should add something like those extensions?

from httpclientfactory.

martincostello avatar martincostello commented on September 23, 2024

I think so, as otherwise if you want to use other services to inform your HTTP registrations, I think you'd have to jump through a few hoops to carry a reference to the service collection yourself so you can turn it into a service provider and reference them at the point of activation.

Maybe it's an advanced scenario and over-complicates things for a first release? I mean, I eventually got to what I needed to do for my use-case, but it took a fair bit of digging around in the APIs to get it plumbed in.

from httpclientfactory.

rynowak avatar rynowak commented on September 23, 2024

Ok cool beans, I'll take a crack at this later

from httpclientfactory.

rynowak avatar rynowak commented on September 23, 2024

3978e61

from httpclientfactory.

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.