/// <summary>
        /// Gets the WiFi http security requirements for communication with the device.
        /// </summary>
        /// <returns>True if WiFi based communication requires a secure connection, false otherwise.</returns>
        /// <remarks>This method is only supported on HoloLens devices.</remarks>
        public async Task <bool> GetIsHttpsRequired()
        {
            if (!Utilities.IsHoloLens(this.Platform, this.DeviceFamily))
            {
                throw new NotSupportedException("This method is only supported on HoloLens.");
            }

            WebManagementHttpSettings httpSettings = await this.Get <WebManagementHttpSettings>(HolographicWebManagementHttpSettingsApi);

            return(httpSettings.IsHttpsRequired);
        }
示例#2
0
        private static async Task <Dictionary <String, String> > HTTPSSettingsToDico(Dictionary <string, string> returnedInfo, WebManagementHttpSettings httpsSettings)
        {
            returnedInfo.Add("HTTPS Required for WebManagement", httpsSettings.IsHttpsRequired.ToString());

            return(returnedInfo);
        }