I have this method that returns string:
string
public string SendResponse(HttpListenerRequest request) { string result = \"\"; string key = req
Declare SendResponse as a Task. This says that this Task will return a string.
SendResponse
Task
public async Task SendResponse(HttpListenerRequest request) { ... }
And in whenever you're calling it:
string result = await SendRespone(request);