コード例 #1
0
ファイル: Https.cs プロジェクト: Padungsak/efinTradePlus
 public bool CertificateValidationCallback(object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors)
 {
     HttpsSSLServerAuthenticationEventArgs httpsSSLServerAuthenticationEventArgs = new HttpsSSLServerAuthenticationEventArgs();
     if (this._OnSSLServerAuthentication != null)
     {
         this._OnSSLServerAuthentication(httpsSSLServerAuthenticationEventArgs);
     }
     return httpsSSLServerAuthenticationEventArgs.Accept;
 }
コード例 #2
0
 private void https_OnSSLServerAuthentication(HttpsSSLServerAuthenticationEventArgs e)
 {
     e.Accept = true;
     this.sslEnabled = true;
 }