Пример #1
0
        public async Task <List <StockInfoModel> > GetStockQueryList(string stock)
        {
            MopsRestApi           api           = new MopsRestApi();
            List <StockInfoModel> stockListTask = await api.GetStockList(stock);

            return(stockListTask);
        }
Пример #2
0
        public async Task TestMethod1()
        {
            MopsRestApi api = new MopsRestApi();
            var         a   = api.GetStockList("23");
            int         aa  = 5;

            Task.WaitAll(a);
        }