Beispiel #1
0
        /// <summary>
        /// This method calls the XmlToJson client controller and displays the output to the console
        /// </summary>
        /// <param name="xmlStr"></param>
        static private void DisplayXmlToJsonResultInConsole(string xmlStr)
        {
            Console.Write("XmlToJson(" + xmlStr + ") = ");
            string result = LemonWayClient.XmlToJsonConsoleClientAsync(xmlStr).Result.ToString();

            Console.WriteLine(result + "\n");
        }
Beispiel #2
0
        /// <summary>
        /// This method calls the Fibonacci client controller and displays the output to the console
        /// </summary>
        /// <param name="n"></param>
        static private void DisplayFibonacciResultInConsole(int n)
        {
            Console.Write("Fibunacci(" + n.ToString() + ") = ");
            string result = LemonWayClient.FibonacciConsoleClientAsync(n).Result.ToString();

            Console.WriteLine(result + "\n");
        }
Beispiel #3
0
 /// <summary>
 /// This method calls the Fibonacci client controller and displays the output to the console
 /// </summary>
 /// <param name="n"></param>
 static private async Task <string> GetFibonacciResult(int n)
 {
     return(await LemonWayClient.FibonacciConsoleClientAsync(n));
 }
Beispiel #4
0
 /// <summary>
 /// This method calls the XmlToJson client controller and displays the output to the console
 /// </summary>
 /// <param name="xmlStr"></param>
 static private async Task <string> GetXmlToJsonResult(string xmlStr)
 {
     return(await LemonWayClient.XmlToJsonConsoleClientAsync(xmlStr));
 }