Giter Club home page Giter Club logo

Comments (4)

jimmyca15 avatar jimmyca15 commented on July 27, 2024

It breaks the pattern a bit because that would be attempting to consume the feature manager before the service provider has been built. Right now there is no clean built-in way to do this, you would have to build an intermediate service provider which is not a good approach.

By the way, are you looking for something similar to what is discussed in this issue Azure/AppConfiguration#68 ?

from featuremanagement-dotnet.

VladimirLevchuk avatar VladimirLevchuk commented on July 27, 2024

Sorry for late response, correct, it's a duplicate of the existing #39

from featuremanagement-dotnet.

qin-guan avatar qin-guan commented on July 27, 2024

hi, i have this code:

        services.AddHttpClient("ApiServices",
                    c => { c.BaseAddress = new Uri(Urls.ApiUrl); })
                .ConfigurePrimaryHttpMessageHandler(() =>
                {
                    if (disableSslCertValidation)
                    {
                        return new HttpClientHandler
                        {
                            ServerCertificateCustomValidationCallback =
                                (message, certificate, chain, sslPolicyErrors) => true
                        };
                    }
                    return new HttpClientHandler();
                })
                .AddTypedClient(RestService.IFor<ApiServices>);

which would need to use feature management in Startup.cs, is there a way to do this? it seems similar to the issue @VladimirLevchuk mentioned

from featuremanagement-dotnet.

rossgrambo avatar rossgrambo commented on July 27, 2024

Closing as a duplicate of #39

from featuremanagement-dotnet.

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.