Example of RestSharp ASYNC client.ExecuteAsync () works

后端 未结 3 2128
孤城傲影
孤城傲影 2021-02-07 05:56

Could someone please help me modify the code below:

client.ExecuteAsync(request, response => {
    Console.WriteLine(response.Content);
});

3条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-07 06:33

    From reading the code it looks like you want to use ExecuteAsGet or ExecuteAsPost instead of the async implementation.

    Or maybe just Execute- not sure exactly what type Client is.

提交回复
热议问题