Git Product home page Git Product logo

Comments (3)

philliphoff avatar philliphoff commented on August 28, 2024

@WhitWaldo As far as I know, query parameters were intended to "just work" with Dapr service invocation and simply "forwarded" to the application. You might submit an issue in the docs repo to have that be made explicit.

As far as a PR goes to help with query parameters, I'm a bit torn. On the one hand, it could be useful in that I've always thought .NET had unexpectedly poor support for managing query parameters. On the other hand, I don't necessarily want to create APIs that might be inconsistent with how developers typically manage query parameters in .NET.

I could see explicit support for query parameters in, say, the basic service invocation methods (e.g. in InvokeMethodAsync() pass a dictionary that represents the query). However, I'm not sure I can see explicit support for query parameters when working with HttpClient, as that seems more the purview of .NET itself or, at least, of non-Dapr libraries.

from dotnet-sdk.

WhitWaldo avatar WhitWaldo commented on August 28, 2024

@philliphoff Yes, my proposal was more centered on augmenting the InvokeMethodAsync method to include a query string argument as under the hood it's simply building out the URL to invoke the method out of the pieces provided, so we could simply add the query string to the end. It would make more sense to simply augment this method than necessarily add some extension method for the HttpClient returned from DaprClient.CreateInvokeHttpClient() as you're right, that's more the purview of the .NET team.

from dotnet-sdk.

WhitWaldo avatar WhitWaldo commented on August 28, 2024

/assign

from dotnet-sdk.

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.