protected ClientCredentials(ClientCredentials other)
 {
     if (other == null)
     {
         throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("other");
     }
     if (other.userName != null)
     {
         this.userName = new UserNamePasswordClientCredential(other.userName);
     }
     if (other.clientCertificate != null)
     {
         this.clientCertificate = new X509CertificateInitiatorClientCredential(other.clientCertificate);
     }
     if (other.serviceCertificate != null)
     {
         this.serviceCertificate = new X509CertificateRecipientClientCredential(other.serviceCertificate);
     }
     if (other.windows != null)
     {
         this.windows = new WindowsClientCredential(other.windows);
     }
     if (other.httpDigest != null)
     {
         this.httpDigest = new HttpDigestClientCredential(other.httpDigest);
     }
     if (other.issuedToken != null)
     {
         this.issuedToken = new IssuedTokenClientCredential(other.issuedToken);
     }
     if (other.peer != null)
     {
         this.peer = new PeerCredential(other.peer);
     }
     this.getInfoCardTokenCallback = other.getInfoCardTokenCallback;
     this.supportInteractive = other.supportInteractive;
     this.isReadOnly = other.isReadOnly;
 }
コード例 #2
0
 protected ClientCredentials(ClientCredentials other)
 {
     if (other == null)
     {
         throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("other");
     }
     if (other.userName != null)
     {
         this.userName = new UserNamePasswordClientCredential(other.userName);
     }
     if (other.clientCertificate != null)
     {
         this.clientCertificate = new X509CertificateInitiatorClientCredential(other.clientCertificate);
     }
     if (other.serviceCertificate != null)
     {
         this.serviceCertificate = new X509CertificateRecipientClientCredential(other.serviceCertificate);
     }
     if (other.windows != null)
     {
         this.windows = new WindowsClientCredential(other.windows);
     }
     if (other.httpDigest != null)
     {
         this.httpDigest = new HttpDigestClientCredential(other.httpDigest);
     }
     if (other.issuedToken != null)
     {
         this.issuedToken = new IssuedTokenClientCredential(other.issuedToken);
     }
     if (other.peer != null)
     {
         this.peer = new PeerCredential(other.peer);
     }
     this.getInfoCardTokenCallback = other.getInfoCardTokenCallback;
     this.supportInteractive       = other.supportInteractive;
     this.isReadOnly = other.isReadOnly;
 }