Exemplo n.º 1
0
        /// <summary>
        /// This function is called by the client on the users computer when they request an asisecho
        /// </summary>
        /// <param name="asIsText">The text to be sent to the service bus</param>
        /// <returns>An html page containing the response from the service bus</returns>
        public ActionResult AsIsEcho(string asIsText)
        {
            AsIsEchoRequest      request = new AsIsEchoRequest(asIsText);
            ServiceBusResponse   response;
            ServiceBusConnection connection = ConnectionManager.getConnectionObject(Globals.getUser());

            if (connection == null)
            {
                response = ConnectionManager.echoAsIs(request);
            }
            else
            {
                response = connection.echoAsIs(request);
            }

            ViewBag.AsIsResponse = response.response;

            return(View("Index"));
        }