I have a problem downloading the file in my c# code.
public Form1()
{
InitializeComponent();
DownloadFile().Wait();
}
private async Task DownloadFile()
{
Debug.WriteLine("Download");// appears
HttpClient client = new();
var response = await client.GetAsync("file");
Debug.WriteLine("End download");// does not display
}
Thread stop after download but the app is not showing.
Le thread 0x7d28 s'est arrêté avec le code 0 (0x0).
Le thread 0x7998 s'est arrêté avec le code 0 (0x0).
Le thread 0x269c s'est arrêté avec le code 0 (0x0).
Le thread 0x7e74 s'est arrêté avec le code 0 (0x0).
Le thread 0x534c s'est arrêté avec le code 0 (0x0).
Le thread 0x77f0 s'est arrêté avec le code 0 (0x0).
Le thread 0x70fc s'est arrêté avec le code 0 (0x0).
Le thread 0x7428 s'est arrêté avec le code 0 (0x0).
Le thread 0x5628 s'est arrêté avec le code 0 (0x0).
Le thread 0x788c s'est arrêté avec le code 0 (0x0).
Le thread 0x63f4 s'est arrêté avec le code 0 (0x0).