Commit 94cca6f9 authored by Greg Pettyjohn's avatar Greg Pettyjohn
Browse files

This is what I showed to Dave

parent 262d065d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -273,7 +273,7 @@ namespace DeviceLab
            }
            await ExecuteReestablishConnectionAsync();
        }
        #endregion // Reboot Comment
        #endregion // Reboot Command

        #region ReestablishConnectionCommand
        private DelegateCommand reestablishConnectionCommand;
+13 −0
Original line number Diff line number Diff line
@@ -123,6 +123,19 @@ namespace Microsoft.Tools.WindowsDevicePortal
            set;
        }

        public bool AllowCertOverride
        {
            get
            {
                throw new NotImplementedException();
            }

            set
            {
                throw new NotImplementedException();
            }
        }

        /// <summary>
        /// Returns certificate data
        /// </summary>
+16 −0
Original line number Diff line number Diff line
@@ -6,6 +6,7 @@

using System;
using System.Net;
using System.Security;
using System.Security.Cryptography.X509Certificates;
using System.Text.RegularExpressions;
using static Microsoft.Tools.WindowsDevicePortal.DevicePortal;
@@ -43,6 +44,21 @@ namespace Microsoft.Tools.WindowsDevicePortal
            }
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="XboxDevicePortalConnection"/> class, using a SecureString to secure the password.
        /// </summary>
        /// <param name="address">device identifier</param>
        /// <param name="userName">WDP username</param>
        /// <param name="password">WDP password</param>
        public DefaultDevicePortalConnection(
            string address,
            string userName,
            SecureString password)
        {
            this.Connection = new Uri(string.Format("https://{0}:11443", address));
            this.Credentials = new NetworkCredential(userName, password);
        }

        /// <summary>
        /// Gets the URI used to connect to the device.
        /// </summary>