Exemple #1
0
        public async Task <OperationResult> InitGraph()
        {
            try
            {
                var res = new OperationResult
                {
                    Operation = "InitGraph",
                    StartDate = DateTime.UtcNow
                };
                var chartData = await _service.InitGraph();

                res.EndDate = DateTime.UtcNow;
                res.Result  = chartData;
                LogInfo($";{res.Duration};InitGraph: ChartData={chartData.ChartData.Count}");
                return(res);
            }
            catch (Exception ex)
            {
                LogError(ex);
                return(null);
            }
        }
Exemple #2
0
        public async Task InitGraph()
        {
            var data = await _service.InitGraph();

            Console.WriteLine(data.ChartData.Count);
        }