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); } }
public async Task InitGraph() { var data = await _service.InitGraph(); Console.WriteLine(data.ChartData.Count); }