LdapConnection.BeginSendRequest uses BeginInvoke which is not supported in .NET Core.
<TargetFramework>netcoreapp2.2</TargetFramework>
<PackageReference Include="System.DirectoryServices.Protocols" Version="4.5.0" />
System.PlatformNotSupportedException: Operation is not supported on this platform.
at System.DirectoryServices.Protocols.GetLdapResponseCallback.BeginInvoke(Int32 messageId, LdapOperation operation, ResultAll resultType, TimeSpan requestTimeout, Boolean exceptionOnTimeOut, AsyncCallback callback, Object object)
at System.DirectoryServices.Protocols.LdapConnection.BeginSendRequest(DirectoryRequest request, TimeSpan requestTimeout, PartialResultProcessing partialMode, AsyncCallback callback, Object state)
at System.DirectoryServices.Protocols.LdapConnection.BeginSendRequest(DirectoryRequest request, PartialResultProcessing partialMode, AsyncCallback callback, Object state)
LdapConnection.BeginSendRequest uses BeginInvoke which is not supported in .NET Core.
<TargetFramework>netcoreapp2.2</TargetFramework><PackageReference Include="System.DirectoryServices.Protocols" Version="4.5.0" />