Gen v1.21.0 (#603)

* gen v1.21.0

* update version converter

* bump version to 5

* remove support of netstandard2.0

* update test dependency
This commit is contained in:
Boshi Lian
2021-04-09 13:37:17 -07:00
committed by GitHub
parent 7d66489cb4
commit 225bb1f59b
108 changed files with 39288 additions and 29898 deletions

View File

@@ -312,14 +312,6 @@ namespace k8s
}
}
#if (NETSTANDARD2_0)
if (this.CaCerts != null)
{
webSocketBuilder.SetServerCertificateValidationCallback(ServerCertificateValidationCallback);
}
#endif
#if NETSTANDARD2_1 || NET5_0
if (this.CaCerts != null)
{
webSocketBuilder.ExpectServerCertificate(this.CaCerts);
@@ -334,7 +326,6 @@ namespace k8s
{
webSocketBuilder.Options.AddSubProtocol(webSocketSubProtocol);
}
#endif // NETSTANDARD2_1 || NET5_0
// Send Request
cancellationToken.ThrowIfCancellationRequested();
@@ -408,25 +399,9 @@ namespace k8s
{
ServiceClientTracing.Exit(invocationId, null);
}
#if (NETSTANDARD2_0)
if (this.CaCerts != null)
{
webSocketBuilder.CleanupServerCertificateValidationCallback(
ServerCertificateValidationCallback);
}
#endif
}
return webSocket;
}
#if (NETSTANDARD2_0)
internal bool ServerCertificateValidationCallback(object sender, X509Certificate certificate, X509Chain chain,
SslPolicyErrors sslPolicyErrors)
{
return CertificateValidationCallBack(sender, CaCerts, certificate, chain, sslPolicyErrors);
}
#endif
}
}