Example #1
0
        private static void CountOneWord(GlobalTextAnalyzerService.GlobalTextAnalyzerClient client)
        {
            Console.WriteLine("Введите текст:");
            var text = Console.ReadLine();

            if (text == "")
            {
                Console.WriteLine("Текст отсутствует");
                return;
            }
            Console.WriteLine("Введите слово:");
            var word = Console.ReadLine();

            if (word == "")
            {
                Console.WriteLine("Слово отсутствует");
                return;
            }
            var responce = client.count_one_wordAsync(new GlobalTextAnalyzerService.count_one_word()
            {
                text = text, word = word
            });

            responce.Wait();
            Console.WriteLine(responce.Result.count_one_wordResponse.count_one_wordResult);
        }