Skip to content

Commit aa10d1f

Browse files
committed
readme
1 parent a346079 commit aa10d1f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -188,10 +188,12 @@ Control certificate validation behavior:
188188
var client = new ClientWebSocketRx { IgnoreServerCertificateErrors = true };
189189

190190
// Option 2: Override the validation method for custom logic
191-
public override bool ValidateServerCertificate( object senderObject, X509Certificate certificate, X509Chain chain, SslPolicyErrors tlsPolicyErrors) {
191+
public override bool ValidateServerCertificate(
192+
object senderObject, X509Certificate certificate, X509Chain chain, SslPolicyErrors tlsPolicyErrors)
193+
{
192194
// Your custom validation logic here
193195
// Fall back to base implementation
194-
return base.ValidateServerCertificate(senderObject, certificate, chain, tlsPolicyErrors);
196+
return base.ValidateServerCertificate(senderObject, certificate, chain, tlsPolicyErrors);
195197
}
196198
```
197199

0 commit comments

Comments
 (0)