Exemple #1
0
        private static void RunAskerAnslysis()
        {
            var example = new UserAnalysisExample();

            var task = example.RunAskerAnalysis();

            task.Wait();

            var result = task.Result.Select(m => m.Value)
                .OrderByDescending(m => m.total)
                .ToList();

            var text = Newtonsoft.Json.JsonConvert.SerializeObject(result, Formatting.Indented);

            File.WriteAllText("top_20_askers.json", text);

            Console.WriteLine(text);
        }