/// <summary> /// Gets the device information. /// </summary> /// <returns></returns> /// <remarks> /// Sequence Diagram:<br/> /// <img src="SequenceDiagrams/SD_PrintReleaseDevice.Browser.LogOn.GetDeviceInformation.jpg"/> /// </remarks> private DEVICE_INFO_TYPE GetDeviceInformation() { DEVICE_INFO_TYPE deviceInfo = null; try { CreateWS(); string generic = "1.0.0.23"; CONFIGURATION_TYPE configurationType = null; deviceSettingType = new DEVICE_SETTING_TYPE(); SCREEN_INFO_TYPE[] screenInfoType = null; deviceInfo = _ws.GetDeviceSettings(ref generic, out deviceSettingType, out configurationType, out screenInfoType); string deviceAutoClear = System.Configuration.ConfigurationSettings.AppSettings["DeviceAutoClear"]; if (deviceAutoClear.ToLower() == "off") { PROPERTY_TYPE[] acSetting = new PROPERTY_TYPE[1]; acSetting[0] = new PROPERTY_TYPE(); acSetting[0].sysname = "enableAutoClear"; acSetting[0].Value = "false"; //or "false" // IF value is set to false, Device auto logout will be removed. string OSASESSIONID = Request.Params["UISessionID"].ToString(); _ws.SetDeviceContext(OSASESSIONID, acSetting, ref OsaDirectManager.Core.g_WSDLGeneric); } } catch (Exception) { } return(deviceInfo); }
/// <summary> /// Gets the device information. /// </summary> /// <returns></returns> /// <remarks> /// Sequence Diagram:<br/> /// <img src="SequenceDiagrams/SD_PrintReleaseDevice.Browser.LogOn.GetDeviceInformation.jpg"/> /// </remarks> private DEVICE_INFO_TYPE GetDeviceInformation() { DEVICE_INFO_TYPE deviceInfo = null; try { CreateWS(); string generic = "1.0.0.23"; CONFIGURATION_TYPE configurationType = null; SCREEN_INFO_TYPE[] screenInfoType = null; deviceInfo = _ws.GetDeviceSettings(ref generic, out deviceSettingType, out configurationType, out screenInfoType); PROPERTY_TYPE[] acSetting = new PROPERTY_TYPE[1]; acSetting[0] = new PROPERTY_TYPE(); acSetting[0].sysname = "enableAutoClear"; acSetting[0].Value = "false"; //or "false" string OSASESSIONID = Request.Params["UISessionId"] as string; _ws.SetDeviceContext(OSASESSIONID, acSetting, ref OsaDirectManager.Core.g_WSDLGeneric); } catch (Exception) { isValidLicenceFile = true; } return(deviceInfo); }
private DEVICE_INFO_TYPE GetDeviceInformation() { DEVICE_INFO_TYPE deviceInfo = null; try { CreateWS(); PROPERTY_TYPE[] acSetting = new PROPERTY_TYPE[1]; acSetting[0] = new PROPERTY_TYPE(); acSetting[0].sysname = "enableAutoClear"; acSetting[0].Value = "false"; //or "false" string OSASESSIONID = Request.Params["UISessionID"].ToString(); _ws.SetDeviceContext(OSASESSIONID, acSetting, ref OsaDirectManager.Core.g_WSDLGeneric); } catch (Exception) { } return(deviceInfo); }