示例#1
0
        public async Task <T> DownloadObjectTaskAsync()
        {
            string url        = _setting.GetUrlInternal();
            var    contentStr = await DownloadStringTaskAync(url);

            T obj = ConvertResult(contentStr, _setting.Ticker);

            return(obj);
        }
示例#2
0
 public async Task <T> DownloadObjectTaskAsync(BaseSetting setting)
 {
     return(await DownloadObjectTaskAsync(setting.GetUrlInternal()));
 }