I have the following implementation. And the default timeout is 100 seconds.
I wonder how can I able to change the default timeout?
HttpService.cs
public class HttpService : IHttpService
{
private static async Task GoRequestAsync<T>(string url, Dictionary<string, object> parameters, HttpMethod method,
Action<T> successAction, Action<Exception> errorAction = null, string body = "")
where T : class
{
using (var httpClient = new HttpClient(new HttpClientHandler()))
{
}
}
}
ServiceCall
usingHttpClient
? – AggappeServiceDataAsync
make a http call usingHttpClient
? – AggappeAbstractHttpCommand
class are you usingHttpClient
? – AggappeAbstractHttpCommand.cs
as well. – DialyserIHttpService
implementation look like, does it have anHttpClient
? Do you just want to change the timeout for this one particular request, or all your request? – AggappeIHttpCommand.cs
as well. I want to change all. – DialyserIHttpService
implementation ? – Aggappe