Example #1
0
        private ResponseBase SendMessage(RequestBase request)
        {
            ResponseBase response;

            try
            {
                response = _innerChannel.Client.ProcessMessage(request);
            }
            catch (EndpointNotFoundException)
            {
                response = new ResponseBase();
                response.AddErrorMessage("Can't connect to buildagent.");
            }
            catch (Exception ex)
            {
                response = new ResponseBase();
                response.AddErrorMessage(ex.Message);
            }
            return(response);
        }