Register a callback that tries to load other versions Open LDAP library if the defaul...
authorBuyaa Namnan <bunamnan@microsoft.com>
Mon, 17 Jul 2023 21:03:43 +0000 (14:03 -0700)
committerGitHub <noreply@github.com>
Mon, 17 Jul 2023 21:03:43 +0000 (14:03 -0700)
commit90b85ea16c97c16545cd2b22a5ae9ee05a16d7c7
tree9e77483663daa27451e4ee1a1aa6313d7aa452db
parent023b54a2d4a82c6b5996fc67f55b83138de64f08
Register a callback that tries to load other versions Open LDAP library if the default is failed (#88851)

* Register a callback to AssemblyLoadContext.Default.ResolvingUnmanagedDll event that tries to load other libraries

* Do not throw when library not found

* Check version 2.6 first
src/libraries/Common/src/Interop/Linux/Interop.Libraries.cs
src/libraries/Common/src/Interop/Linux/OpenLdap/Interop.Ldap.cs