public ElasticCasFactory(string name) { // Init Log Logger = LogManager.GetLogger(name); if (Settings.Exists()) { Logger.InfoFormat("Using ElasticSearch Host : {0}", Settings.ElasticSearchServer); } else { Logger.InfoFormat("No ElasticSearch Host specified, using default : {0}", Settings.ElasticSearchServer); } client = new ElasticClientWrapper(); Logger.InfoFormat("New ElasticSearch Connection from {0}", name); }
public BaseService(string name) { ecf = new ElasticCasFactory(name); client = ecf.Client; }