Is there a way to wait for a callback to finish without using tasks (for obvious reasons)? I'm wanting to return the response, but due to it being async, I can't wait for the webrequest to complete.
//...
string res = "";
webrequest.Enqueue("https://google.com", "", (code, response) =>
{
res = response;
}, this);
//...