Esempio n. 1
0
        public AResponse SendRequest(ARequest request)
        {
            AResponse response = null;

            try
            {
                _historyControl.WriteToLog("Request: " + request.ParseToString());

                response = _client.Send(request);

                _historyControl.WriteToLog("Response: " + response.ResponseType.ToString());

                // update status
                SuccessPanel.BackColor = _statusColors[response.ResponseType];
            }
            catch (System.Exception e)
            {
                _historyControl.WriteToLog("Error:" + e.Message);
                SuccessPanel.BackColor = _statusColors[ServerResponseType.Bad];
            }

            return(response);
        }