Validator









How do I use Validator
Below are practical examples compiled from projects for learning and reference purposes

Featured Snippets


File name: AccountService.cs Copy
42     public AccountService()
43     {
44         WebRequest.DefaultWebProxy = null;
45         ServicePointManager.ServerCertificateValidationCallback = Validator;
46     }
File name: AccountService.cs Copy
48     public static bool Validator(object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors policyErrors)
49     {
50         return true; // any certificate is ok in this case
51     }

Download file with original file name:Validator

Validator 117 lượt xem

Gõ tìm kiếm nhanh...