Loading WindowsDevicePortalWrapper/WindowsDevicePortalWrapper.Shared/DevicePortal.cs +11 −2 Original line number Diff line number Diff line Loading @@ -219,8 +219,8 @@ namespace Microsoft.Tools.WindowsDevicePortal this.deviceConnection.Family = await this.GetDeviceFamily(); this.deviceConnection.OsInfo = await this.GetOperatingSystemInformation(); // Default to using HTTPS. bool requiresHttps = true; // Default to using whatever was specified in the connection. bool requiresHttps = this.IsUsingHttps(); // HoloLens is the only device that supports the GetIsHttpsRequired method. if (this.deviceConnection.OsInfo.Platform == DevicePortalPlatforms.HoloLens) Loading Loading @@ -457,5 +457,14 @@ namespace Microsoft.Tools.WindowsDevicePortal { this.ConnectionStatus?.Invoke(this, new DeviceConnectionStatusEventArgs(status, phase, message)); } /// <summary> /// Helper method to determine if our connection is using HTTPS /// </summary> /// <returns>Whether we are using HTTPS</returns> private bool IsUsingHttps() { return this.deviceConnection.Connection.Scheme.Equals("https", StringComparison.OrdinalIgnoreCase); } } } Loading
WindowsDevicePortalWrapper/WindowsDevicePortalWrapper.Shared/DevicePortal.cs +11 −2 Original line number Diff line number Diff line Loading @@ -219,8 +219,8 @@ namespace Microsoft.Tools.WindowsDevicePortal this.deviceConnection.Family = await this.GetDeviceFamily(); this.deviceConnection.OsInfo = await this.GetOperatingSystemInformation(); // Default to using HTTPS. bool requiresHttps = true; // Default to using whatever was specified in the connection. bool requiresHttps = this.IsUsingHttps(); // HoloLens is the only device that supports the GetIsHttpsRequired method. if (this.deviceConnection.OsInfo.Platform == DevicePortalPlatforms.HoloLens) Loading Loading @@ -457,5 +457,14 @@ namespace Microsoft.Tools.WindowsDevicePortal { this.ConnectionStatus?.Invoke(this, new DeviceConnectionStatusEventArgs(status, phase, message)); } /// <summary> /// Helper method to determine if our connection is using HTTPS /// </summary> /// <returns>Whether we are using HTTPS</returns> private bool IsUsingHttps() { return this.deviceConnection.Connection.Scheme.Equals("https", StringComparison.OrdinalIgnoreCase); } } }