예제 #1
0
 public void Copy(X509PeerCertificateAuthenticationElement from)
 {
     if (this.IsReadOnly())
     {
         throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ConfigurationErrorsException(System.ServiceModel.SR.GetString("ConfigReadOnly")));
     }
     if (from == null)
     {
         throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("from");
     }
     this.CertificateValidationMode      = from.CertificateValidationMode;
     this.RevocationMode                 = from.RevocationMode;
     this.TrustedStoreLocation           = from.TrustedStoreLocation;
     this.CustomCertificateValidatorType = from.CustomCertificateValidatorType;
 }
 public void Copy(X509PeerCertificateAuthenticationElement from)
 {
     if (this.IsReadOnly())
     {
         throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ConfigurationErrorsException(System.ServiceModel.SR.GetString("ConfigReadOnly")));
     }
     if (from == null)
     {
         throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("from");
     }
     this.CertificateValidationMode = from.CertificateValidationMode;
     this.RevocationMode = from.RevocationMode;
     this.TrustedStoreLocation = from.TrustedStoreLocation;
     this.CustomCertificateValidatorType = from.CustomCertificateValidatorType;
 }