protected void Application_Start()
        {
            AreaRegistration.RegisterAllAreas ();
            RegisterGlobalFilters (GlobalFilters.Filters);
            RegisterRoutes (RouteTable.Routes);

            logInfo = new LogInfo ();
            Application ["logInfo"] = logInfo;
            socketListener = new AsynchronousSocketListener (logInfo);
            listenerThread = new Thread (new ThreadStart (socketListener.StartListening));

            listenerThread.Start ();
        }
 public AsynchronousSocketListener(LogInfo _logInfo)
 {
     logInfo = _logInfo;
     allDone = new ManualResetEvent(false);
 }