Coder Social home page Coder Social logo

Comments (5)

shubhamranjan avatar shubhamranjan commented on July 24, 2024

@sarmut
I agree with the return type not being void for methods like PutAsync. I will change the same and it won't be a breaking change as well for similar return types.

However , when you say return whatever the underlying async response comes from KVClient's corresponding async methods, methods like GetAsync don't return the whole of the output but return Task<string>. Can you provide a specific use case when you would like to use the whole response not just the Get value.

from dotnet-etcd.

sarmut avatar sarmut commented on July 24, 2024

@shubhamranjan
There are situations the whole response is needed, for example, logging. I need to log the certain pieces from response header to analyze later. So it'd be helpful not to throw away the underlying response object.

One more request. Is 'ResetConnection()' needed? Scenarios is that if I share this client object with multiple threads/async tasks, if one task fails then all the other tasks connected to that particular client also will fail because the underlying channel is destroyed.

BTW, Thank you very much for doing this. I very much appreciate it.

from dotnet-etcd.

shubhamranjan avatar shubhamranjan commented on July 24, 2024

@sarmut

  1. Noted.I will try to provide the response object maintaining backward compatibility.
  2. I am aware of this. Unable to get something like ConnectionException on disconnect, hence added that in the universal exception catch block to reset connection.If connection fails, all subsequently calls will fail.To avoid a scenario for shared objects, I will try to look for more improvements.

from dotnet-etcd.

shubhamranjan avatar shubhamranjan commented on July 24, 2024

Update: Will patch this in the upcoming week.

from dotnet-etcd.

shubhamranjan avatar shubhamranjan commented on July 24, 2024

Changes merged in master.To be released with v1.1.0

from dotnet-etcd.

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.