Exemplo n.º 1
0
 /// <summary>
 /// Post请求JSON
 /// </summary>
 /// <param name="httpClient">http客户端</param>
 /// <param name="url">URL</param>
 /// <param name="data">数据</param>
 /// <param name="customerOptions">自定义选项配置</param>
 /// <returns>任务</returns>
 public static Task <string> PostJsonAsync(this HttpClient httpClient, string url, object data = null, Action <ChannelCustomerOptions> customerOptions = null)
 {
     return(Task <string> .Run(() => httpClient.PostJson(url, data, customerOptions)));
 }