Esempio n. 1
0
 public static Task <T> GetJsonAsync <T>(this string url, int weight)
 {
     RequestLimitUtil.RequestBlock(weight);
     return(url.GetJsonAsync <T>());
 }
Esempio n. 2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="url"></param>
 /// <param name="weight">权重</param>
 /// <returns></returns>
 public static Task <IFlurlResponse> GetAsync(this string url, int weight)
 {
     RequestLimitUtil.RequestBlock(weight);
     return(url.GetAsync());
 }