Ejemplo n.º 1
0
        public void Start()
        {
            XmlConfigurator.Configure();

            indexer = new TextIndexerService();
            indexer.Start();

            searcher = new ServiceHost(typeof(TextSearcherService));
            searcher.Open();
        }
Ejemplo n.º 2
0
        public void Start()
        {
            XmlConfigurator.Configure();

            indexer = new TextIndexerService();
            indexer.Start();

            searcher = new ServiceHost(typeof(TextSearcherService));
            searcher.Open();
        }
Ejemplo 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();
            }
        }