Azure / azure-iot-sdk-csharp

A C# SDK for connecting devices to Microsoft Azure IoT services
Other
464 stars 493 forks source link

Handle connection lease timeout for all target frameworks #3280

Closed timtay-microsoft closed 1 year ago

timtay-microsoft commented 1 year ago

Setting the connection lease timeout via the ServicePointManager doesn't work for .NET core, so this adds the appropriate handling.

This is based heavily on the ServicePointHelper class defined in Azure.Core (with some small modifications)