public TextSearcherService() { log.Debug("TextSearcherService constructor: start"); configuration = new TextIndexCfg(); tenantsProvider = new TenantsProvider(configuration.ConnectionStringName, configuration.UserActivityDays); log.Debug("TextSearcherService constructor: end"); }
public TextIndexerService() { configuration = new TextIndexCfg(); tenantsProvider = new TenantsProvider(configuration.ConnectionStringName, configuration.UserActivityDays); worker = new Thread(DoWork) { Priority = ThreadPriority.Lowest, Name = "Full Text Indexer", }; stop = new ManualResetEvent(false); }
public void Start() { XmlConfigurator.Configure(); try { var successInit = TextIndexCfg.Init(); if (successInit && CheckIndexer(TextIndexCfg.IndexerName)) { indexer = new TextIndexerService(); indexer.Start(); } searcher = new ServiceHost(typeof(TextSearcherService)); searcher.Open(); } catch (Exception e) { LogManager.GetLogger("ASC").Error(e); Stop(); } }
public void Start() { XmlConfigurator.Configure(); try { var successInit = TextIndexCfg.Init(); if (successInit) { TextIndexerService.Instance.Start(); } searcher = new ServiceHost(typeof(TextSearcherService)); searcher.Open(); } catch (Exception e) { LogManager.GetLogger("ASC").Error(e); Console.WriteLine(e.StackTrace); Stop(); } }
public TextSearcherService() { configuration = new TextIndexCfg(); }