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."],[[["`VerifyPeerCallback` is a delegate that's invoked with the expected target host and the peer's certificate for verification."],["Returning `false` from this callback results in a verification failure and the attempted connection being terminated."],["The callback's implementation should be lightweight, as its invocation is blocking and potentially occurs concurrently from multiple threads."],["The `context` parameter, of type `VerifyPeerContext`, is passed to the callback for verification."],["The callback returns a boolean value indicating whether the verification was successful (`true`) or not (`false`)."]]],[]]