Пример #1
0
 protected virtual void OnValidateRemoteCertificate(SslValidateCertificateEventArgs e)
 {
     if (this.ValidateRemoteCertificate != null)
     {
         this.ValidateRemoteCertificate(this, e);
     }
 }
Пример #2
0
        public Boolean OnValidateRemoteCertificate(X509Certificate certificate)
        {
            SslValidateCertificateEventArgs lEventArgs = new SslValidateCertificateEventArgs(certificate);

            this.OnValidateRemoteCertificate(lEventArgs);

            return(!lEventArgs.Cancel);
        }