public void Copy(X509ServiceCertificateAuthenticationElement 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;
 }
Example #2
0
 public void Copy(X509ServiceCertificateAuthenticationElement 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;
 }