///<summary>Optionally set hasConnectionLost true to keep the calling thread here until a connection to the Middle Tier connection can be established ///in the event of a web connection failure. Set hasConnectionLost to false if a throw is desired when a connection cannot be made.</summary> public static string ProcessGetString(DtoGetString dto, bool hasConnectionLost = true) { string result = SendAndReceive(dto, hasConnectionLost); DtoException exception; try { exception = (DtoException)DataTransferObject.Deserialize(result); } catch { return(XmlConverter.XmlUnescape(result)); } throw ThrowExceptionForDto(exception); }
///<summary></summary> public static string ProcessGetString(DtoGetString dto) { string result = SendAndReceive(dto); //this might throw an exception if server unavailable DtoException exception; try { exception = (DtoException)DataTransferObject.Deserialize(result); } catch { return(XmlConverter.XmlUnescape(result)); } throw ThrowExceptionForDto(exception); }