public delegate bool VerifyPeerCallback(VerifyPeerContext context)
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).
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["The `VerifyPeerCallback` delegate is invoked with a `VerifyPeerContext` to verify a peer's certificate and target host."],["Returning `false` from the callback signifies a verification failure, causing the connection attempt to fail."],["The callback's execution is blocking and should be lightweight, as it might be called multiple times concurrently from different threads."],["The parameter of this callback is called `context`, which is an object of type `VerifyPeerContext`."],["The function returns a boolean, where `true` means verification succeeded, and `false` means it failed."]]],[]]