private void ListenerCallback(HttpListenerContext result)
        {
            if (result != null)
            {
                HttpListenerRequest request = result.Request;

                if (request.HasEntityBody)
                {
                    ThreadPoolManager.AddTask(result);
                }
                else
                {
                    LogManager.PrintErrorMessage("Got message with no entity body!");
                }
            }
            else
            {
                LogManager.PrintErrorMessage("Got message with context null!");
            }
        }
        public void ListenerCallback(HttpListenerContext result)
        {
            if (result != null)
            {
                HttpListenerRequest request = result.Request;

                if (request.HasEntityBody)
                {
                    ThreadPoolManager.AddTask(result);

                    TotalMessages++;
                }
                else
                {
                    LogAddMessage("Got message with no entity body!");
                }
            }
            else
            {
                LogAddMessage("Got message with context null!");
            }
        }