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(); }
private ProxyServiceManager() { // m_tcpListener = new TcpListener(ListeningIPInterface, ListeningPort); IPEndPoint endPt = new IPEndPoint(IPAddress.Loopback, 8871); m_tcpListener = new Socket(endPt.AddressFamily, SocketType.Stream, ProtocolType.Tcp); m_tcpListener.Bind(endPt); m_tcpListener.Listen(50); m_tcpListener.NoDelay = true; try { m_proxydb = new ProxyDbs.ProxyDb(true); } catch (Exception ex) { ////TCPClientProcessor.Proxylog.Logger.Error(ex); } }