Commit 58cafe7d authored by Jason Williams's avatar Jason Williams
Browse files

Tweak to fix StyleCop warning.

parent 407dfd61
Loading
Loading
Loading
Loading
+10 −10
Original line number Diff line number Diff line
@@ -20,16 +20,6 @@ namespace Microsoft.Tools.WindowsDevicePortal
    /// </content>
    public partial class DevicePortal
    {
        /// <summary>
        /// Sets the manual certificate.
        /// </summary>
        /// <param name="cert">Manual certificate</param>
        private void SetManualCertificate(Certificate cert)
        {
            CertificateStore store = CertificateStores.TrustedRootCertificationAuthorities;
            store.Add(cert);
        }

        /// <summary>
        /// Gets the root certificate from the device.
        /// </summary>
@@ -80,5 +70,15 @@ namespace Microsoft.Tools.WindowsDevicePortal
            return certificate;
        }
#pragma warning restore 1998

        /// <summary>
        /// Sets the manual certificate.
        /// </summary>
        /// <param name="cert">Manual certificate</param>
        private void SetManualCertificate(Certificate cert)
        {
            CertificateStore store = CertificateStores.TrustedRootCertificationAuthorities;
            store.Add(cert);
        }
    }
}
+9 −9
Original line number Diff line number Diff line
@@ -23,15 +23,6 @@ namespace Microsoft.Tools.WindowsDevicePortal
        /// </summary>
        private X509Certificate2 manualCertificate = null;

        /// <summary>
        /// Sets the manual certificate.
        /// </summary>
        /// <param name="cert">Manual certificate</param>
        private void SetManualCertificate(X509Certificate2 cert)
        {
            this.manualCertificate = cert;
        }

        /// <summary>
        /// Gets or sets handler for untrusted certificate handling
        /// </summary>
@@ -59,6 +50,15 @@ namespace Microsoft.Tools.WindowsDevicePortal
            return certificate;
        }

        /// <summary>
        /// Sets the manual certificate.
        /// </summary>
        /// <param name="cert">Manual certificate</param>
        private void SetManualCertificate(X509Certificate2 cert)
        {
            this.manualCertificate = cert;
        }

        /// <summary>
        /// Validate the server certificate
        /// </summary>