Hello! When I try to use the following code, I get an error that the variable "sslprotocols" is unknown. How to fix it, thanks!
client.SSLConfiguration.EnabledSslProtocols = SslProtocols.Tls;
I assume you have not imported proper namespace (System.Security.Authentication.SslProtocols):
client.SSLConfiguration.EnabledSslProtocols = System.Security.Authentication.SslProtocols.Tls12;