Amqp.Listener.ConnectionListener.WebSocketTransportListener.AcceptListenerContextLoop C# (CSharp) Method

AcceptListenerContextLoop() private method

private AcceptListenerContextLoop ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task
            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());
                    }
                }
            }
        }