async Task AcceptListenerContextLoop()
{
while (!this.closed)
{
try
{
HttpListenerContext context = await this.httpListener.GetContextAsync();
var task = this.HandleListenerContextAsync(context);
}
catch (Exception exception)
{
Trace.WriteLine(TraceLevel.Error, exception.ToString());
}
}
}
}