MetacoSA / NBitcoin

Comprehensive Bitcoin library for the .NET framework.
MIT License
1.86k stars 844 forks source link

Use .NET `Socket.ConnectAsync(endpoint, cancellationToken)` library i… #1085

Closed kiminuo closed 2 years ago

kiminuo commented 2 years ago

…mplementation in .NET 6+.

See https://docs.microsoft.com/en-us/dotnet/api/system.net.sockets.socket.connectasync?view=net-6.0#system-net-sockets-socket-connectasync(system-net-endpoint-system-threading-cancellationtoken)

NicolasDorier commented 2 years ago

Thanks for finding that, I pushed a different way more consistent with how we handle build in this project https://github.com/MetacoSA/NBitcoin/commit/3f5420eeaea443eeba6dc44627bac1165678b3d4