Switch MsQuicOpen to MsQuicOpenVersion (#54443)
authorThad House <ThadHouse@users.noreply.github.com>
Mon, 21 Jun 2021 19:56:27 +0000 (12:56 -0700)
committerGitHub <noreply@github.com>
Mon, 21 Jun 2021 19:56:27 +0000 (21:56 +0200)
commit2bc86980ba50713ced7a2ef12187c299ad6a355a
treea7bbbdb78f6f6b28a2b90a848453e31dfe854ec0
parentd08c08d2630acc5866225636587f78b35e60fcfe
Switch MsQuicOpen to MsQuicOpenVersion (#54443)

* Switch MsQuicOpen to MsQuicOpenVersion

MsQuicOpenVersion is designed so we can update the API without breaking old consumers. The version of MsQuic specified in the readme already has this change, so it is safe to completely switch over.

Also switches the API to function pointers, as it was easier then updating the delegate too.

* Add version contant
src/libraries/System.Net.Quic/src/System/Net/Quic/Implementations/MsQuic/Internal/MsQuicApi.cs
src/libraries/System.Net.Quic/src/System/Net/Quic/Implementations/MsQuic/Interop/MsQuicNativeMethods.cs