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

            if (text == "")
            {
                Console.WriteLine("Текст отсутствует");
                return;
            }
            var responce = client.count_wordsAsync(new GlobalTextAnalyzerService.count_words()
            {
                text = text
            });

            responce.Wait();
            foreach (var r in responce.Result.count_wordsResponse.count_wordsResult)
            {
                Console.WriteLine($"{r.key} - {r.value}");
            }
        }