Page 1 of 1

Ändern Sie die Standardzeit

Posted: 30 Apr 2025, 18:26
by Anonymous
Ich habe die folgende Implementierung. Und die Standardzeit beträgt 100 Sekunden. < /p>

Ich frage mich, wie ich das Standard -Timeout ändern kann?

Code: Select all

public class HttpService : IHttpService
{

private static async Task GoRequestAsync(string url, Dictionary parameters, HttpMethod method,
Action successAction, Action errorAction = null, string body = "")
where T : class
{
using (var httpClient = new HttpClient(new HttpClientHandler()))
{

}
}
}