Why is my Initial call in RestSharp really slow? but others after are very fast

后端 未结 4 1223
难免孤独
难免孤独 2021-01-04 08:03

I am making calls to a WEB API using RESTSHARP and they work fine. However, the Initial call to the API (regardless of what call it is) can sometimes take up to 10 seconds t

4条回答
  •  误落风尘
    2021-01-04 08:28

    Tried to get rid of the auto configuration to look for a proxy server with this

    System.Net.WebRequest.DefaultWebProxy = null;
    

提交回复
热议问题