private void SequentialImplementation() { List <Series> seriesList = new List <Series>(); foreach (var name in names) { StockData sd = RetrieveStockData(name); List <StockValue> values = sd.GetValues(); seriesList.Add(GetSeries(values, name)); seriesList.Add(GetTrend(values, name)); } DisplayData(seriesList); SaveImage("chart"); }
private Task <List <StockValue> > GetValuesAsync(StockData stockData) { return(Task.Run(() => stockData.GetValues())); }