public void Start() { XmlConfigurator.Configure(); indexer = new TextIndexerService(); indexer.Start(); searcher = new ServiceHost(typeof(TextSearcherService)); searcher.Open(); }
public void Start() { XmlConfigurator.Configure(); indexer = new TextIndexerService(); indexer.Start(); searcher = new ServiceHost(typeof(TextSearcherService)); searcher.Open(); }
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(); } }