public TextSearcherService()
 {
     log.Debug("TextSearcherService constructor: start");
     configuration   = new TextIndexCfg();
     tenantsProvider = new TenantsProvider(configuration.ConnectionStringName, configuration.UserActivityDays);
     log.Debug("TextSearcherService constructor: end");
 }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
        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();
            }
        }
Esempio n. 4
0
        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();
 }