<PackageReference Include="Grpc.Core.Api" Version="2.70.0-pre1" />

Grpc.Core.VerifyPeerCallback

public sealed delegate VerifyPeerCallback : MulticastDelegate
Callback invoked with the expected targetHost and the peer's certificate. If false is returned by this callback then it is treated as a verification failure and the attempted connection will fail. Invocation of the callback is blocking, so any implementation should be light-weight. Note that the callback can potentially be invoked multiple times, concurrently from different threads (e.g. when multiple connections are being created for the same credentials).
public VerifyPeerCallback(object object, IntPtr method)

public virtual IAsyncResult BeginInvoke(VerifyPeerContext context, AsyncCallback callback, object object)

public virtual bool EndInvoke(IAsyncResult result)

public virtual bool Invoke(VerifyPeerContext context)