Exemple #1
0
        public override bool Equals(object other)
        {
            MpnsCredential mpnsCredential = other as MpnsCredential;

            if (mpnsCredential == null)
            {
                return(false);
            }
            if (mpnsCredential.CertificateKey != this.CertificateKey)
            {
                return(false);
            }
            return(mpnsCredential.MpnsCertificate == this.MpnsCertificate);
        }
Exemple #2
0
 public MpnsCredential(X509Certificate mpnsCertificate, string certificateKey) : this(MpnsCredential.ExportCertificateBytes(mpnsCertificate, certificateKey), certificateKey)
 {
 }