How can I lock/unlock resources between threads?

I’m playing with a broker API. I have created a SSLSocket like this: try { // Crea el socket SSL s = (SSLSocket) SSLSocketFactory.getDefault().createSocket("xapi.xtb.com", 5124); s.setKeepAlive(true); } catch (IOException e) { e.printStackTrace(); } I need that socket to be used in login, and trade actions, but, also, I need to make a ping every 10… Read More How can I lock/unlock resources between threads?

cannot send post request to my API controller with HttpClient

I am working on communication between API <-> webAPP via HttpClient. This is my API controller: [HttpPut, Route("voipport/{newPort}")] public async Task<IActionResult> PutVoipPort(int newPort) { try { await _repository.ChangePort(newPort); await _repository.AddNewRecord("PutVoipPort", "Success"); return Ok(); } catch(Exception exception) { return BadRequest(exception.Message); } } this is fired from website with this: public async Task VOIPChangePort(int newPort) { var… Read More cannot send post request to my API controller with HttpClient

Retrieving complex api information and putting it in a listviewbuilder

I am trying to create an mobile app where i can put in a name and get information from an api afterwards, this was working until the api got more complex. can share this information btw. It is showing nothing but the image. api that works when i retrieve it: {"id":"Pw_wOwAmqDmB3slQO_8PkKXLoE56qnBk5f-qdW0fKVTfvAmm", "accountId":"_MkPpRhr6tK22xRT8TofYHPyACcmURn0cp-U9GbL1xTQzhRfvaw4ZF7P", "puuid":"RT0wLpw9fOUMgB4HUWDVoMi6_F20W4yhut5-q1bA7Izhl3dPjv5iF2JzqXkLQJYPtf2MBMcvooMmGA", "name":"Zeri outplay",… Read More Retrieving complex api information and putting it in a listviewbuilder