Example #1
0
        public AnalyzerManager()
        {
            m_proxydb = new ProxyDbs.ProxyDb(false);
            DBManager.Start();
            winaudits.DBManager.Start();

            try
            {
                string config = ConfigHandler.ReadConfigFile();
                ConfigHandler.Config = ConfigHandler.DeSerializeToConfigParams(config);
                SaveProxyConfig();
            }
            catch (Exception ex)
            {
                //Logger.Error(ex.Message);
            }

            //temp code need to be handled
            try
            {
                //ILog tempLogger = CLogger.CreateLoggers("AnalyzerLogs", "AnalyzerLog");
                //if (tempLogger != null)
                //{
                //    Logger = tempLogger;
                //}
            }
            catch (Exception ex)
            {
                //Logger.Error(ex.Message);
            }

            try
            {
                if (ConfigHandler.Config.ByPassDetails != null)
                {
                    AddRegisterEntriesInstaller.RegistryEditor regEditor = new AddRegisterEntriesInstaller.RegistryEditor();
                    regEditor.Start("proxyoverride", ConfigHandler.Config.ByPassDetails.ByPassString);
                }
            }
            catch (Exception ex)
            {
                //Logger.Error(ex.Message);
            }
            m_RegisterThread = new Thread(Registration.ClientRegistrar.Start);
            m_RegisterThread.IsBackground = true;
            m_RegisterThread.Start();
        }
Example #2
0
 static void Main(string[] args)
 {
     AddRegisterEntriesInstaller.RegistryEditor regEditor = new AddRegisterEntriesInstaller.RegistryEditor();
     try
     {
         ////regEditor.Logger.Info("Enter Main");
         regEditor.Start(args[0]);
         ////regEditor.Logger.Info("Exit Main");
     }
     catch (Exception ex)
     {
         //regEditor.Logger.Error(ex);
     }
     finally
     {
     }
 }