public async Task <List <StockInfoModel> > GetStockQueryList(string stock) { MopsRestApi api = new MopsRestApi(); List <StockInfoModel> stockListTask = await api.GetStockList(stock); return(stockListTask); }
public async Task TestMethod1() { MopsRestApi api = new MopsRestApi(); var a = api.GetStockList("23"); int aa = 5; Task.WaitAll(a); }