Git Product home page Git Product logo

Comments (8)

zhenlan avatar zhenlan commented on June 1, 2024 1

If I understand your proposal correctly, the problem with it is that the request that calls TrackEvent may never trigger a feature evaluation at all. The heart-vote button is an example. If I misunderstand your proposal, please elaborate.

On the other hand, I'm happy to ship an in-box HttpContext-based TargetingContextAccessor. Please open a separate issue with details of the proposal.

from featuremanagement-dotnet.

jimmyca15 avatar jimmyca15 commented on June 1, 2024 1

add ASP.NET stuff to the .AddFeatureManagement()

Adding anything ASP.NET related to the AddFeatureManagement method isn't doable since AddFeatureManagement is in the base feature management library.

from featuremanagement-dotnet.

zhenlan avatar zhenlan commented on June 1, 2024

I like it. I was thinking about something similar too.

The TargetingHttpContextMiddleware is only useful for ASP.NET targeting telemetry. The name of UseFeatureManagement is quite generic. We may want to reserve that name for a more base library though.

from featuremanagement-dotnet.

jimmyca15 avatar jimmyca15 commented on June 1, 2024

The middleware is defined in our base ASP.NET Core library, given the extension depends on ASP.NET core, I don't think it could go into any more base of a library.

from featuremanagement-dotnet.

zhenlan avatar zhenlan commented on June 1, 2024

You are right about the base library, Jimmy.

As we discussed offline, since TargetingHttpContextMiddleware is only useful for 1. targeting scenarios 2. AppInsights telemetry. To be a good citizen, ideally, we can add middleware only when we detect those conditions. Then I have no concerns to wrap the middleware in the generic method UseFeatureManagement.

from featuremanagement-dotnet.

rossgrambo avatar rossgrambo commented on June 1, 2024

I think this middleware can be obsoleted by a TargetingContextAccessor doing the same thing. I spoke a little with Jimmy about the idea. I plan to make a PR and we can discuss further on that. Happy to keep this issue open until that's decided on.

from featuremanagement-dotnet.

rossgrambo avatar rossgrambo commented on June 1, 2024

Hey @zhenlan & @jimmyca15 , looks like we were considering to add ASP.NET stuff to the .AddFeatureManagement(). Do we still feel that way about the out-of-the-box HttpTargetingContextAccessor?

from featuremanagement-dotnet.

jimmyca15 avatar jimmyca15 commented on June 1, 2024

Related: #424

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.