Giter Club home page Giter Club logo

Comments (5)

RyanDawkins avatar RyanDawkins commented on May 18, 2024

Looks like this can be closed.

from botbuilder-dotnet.

cleemullins avatar cleemullins commented on May 18, 2024

from botbuilder-dotnet.

cleemullins avatar cleemullins commented on May 18, 2024

The remaining one to fix is the ConnectorClient. It's called in few places.

@EricDahlvang is looking into this now. It's complex because it's down in auto-generated code and the patterns for fixing it are non-obvious.

from botbuilder-dotnet.

EricDahlvang avatar EricDahlvang commented on May 18, 2024

In August, a constructor was introduced to ServiceClient that allowed consuming code to specify if HttpClient should be disposed https://github.com/Azure/azure-sdk-for-net/pull/3547/files . A method was also added that ensures ProductInfoHeaderValues are not added to UserAgent twice. However, this throws exceptions when a ProductInfoHeaderValue is provided that does not have a Product (i.e. constructed with comment only). Also, the ServiceClient itself adds a ProductInfoHeaderValue every time. These things make the HttpClient constructor on ServiceClient an invalid option for re-using a static HttpClient . ( filed this issue: Azure/azure-sdk-for-net#4086 and this PR Azure/azure-sdk-for-net#4095 )

These things considered, the only viable option at this time is something like what @tomlm submitted here: https://github.com/Microsoft/BotBuilder/blob/d09bcc9c46e2a16d9d523f4209387fd0aaa68b29/CSharp/Library/Microsoft.Bot.Connector.Shared/ConnectorClientEx.cs

from botbuilder-dotnet.

cleemullins avatar cleemullins commented on May 18, 2024

With Tom's most recent changes, #186, this is now done.
@EricDahlvang

from botbuilder-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.