Loading Samples/DeviceLab/DevicePortalViewModel.cs +1 −1 Original line number Diff line number Diff line Loading @@ -273,7 +273,7 @@ namespace DeviceLab } await ExecuteReestablishConnectionAsync(); } #endregion // Reboot Comment #endregion // Reboot Command #region ReestablishConnectionCommand private DelegateCommand reestablishConnectionCommand; Loading Samples/DeviceLab/XboxDevicePortalConnection.cs +13 −0 Original line number Diff line number Diff line Loading @@ -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> Loading WindowsDevicePortalWrapper/WindowsDevicePortalWrapper/DefaultDevicePortalConnection.cs +16 −0 Original line number Diff line number Diff line Loading @@ -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; Loading Loading @@ -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> Loading Loading
Samples/DeviceLab/DevicePortalViewModel.cs +1 −1 Original line number Diff line number Diff line Loading @@ -273,7 +273,7 @@ namespace DeviceLab } await ExecuteReestablishConnectionAsync(); } #endregion // Reboot Comment #endregion // Reboot Command #region ReestablishConnectionCommand private DelegateCommand reestablishConnectionCommand; Loading
Samples/DeviceLab/XboxDevicePortalConnection.cs +13 −0 Original line number Diff line number Diff line Loading @@ -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> Loading
WindowsDevicePortalWrapper/WindowsDevicePortalWrapper/DefaultDevicePortalConnection.cs +16 −0 Original line number Diff line number Diff line Loading @@ -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; Loading Loading @@ -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> Loading