Ein Treffpunkt für C#-Programmierer
Anonymous
Ändern Sie die Standardzeit
Post
by Anonymous » 30 Apr 2025, 18:26
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()))
{
}
}
}
1746030404
Anonymous
Ich habe die folgende Implementierung. Und die Standardzeit beträgt 100 Sekunden. < /p> Ich frage mich, wie ich das Standard -Timeout [url=viewtopic.php?t=12045]ändern[/url] kann?[code]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())) { } } } [/code]
0 Replies
15 Views
Last post by Guest
12 Jan 2025, 14:32
0 Replies
2 Views
Last post by Anonymous
21 May 2025, 14:05
0 Replies
0 Views
Last post by Anonymous
21 May 2025, 14:23
0 Replies
1 Views
Last post by Anonymous
22 May 2025, 08:48
0 Replies
1 Views
Last post by Anonymous
22 May 2025, 16:48