async void GetLieu(string place)
{
ShowProgressDialogue("Récupération des données...");
string MonURL = "https://hubeau.eaufrance.fr/api/v1/hydrometrie/referentiel/stations";
string url = MonURL + "?code_departement=" + place;
var handler = new HttpClientHandler();
HttpClient client = new HttpClient(handler);
string result = await client.GetStringAsync(url);
Console.WriteLine(result);
var resultObjet = JObject.Parse(result);
hello, I have a problem that I can't solve. I can't adapt my code to prevent it crashing at the level of :
await client.GetStringAsync (url);
which would have a solution without modifying : async void GetLieu (string place)) ?
I am taker of any information. thank you in advance.