Example #1
0
 public SearchWorker() : this(ElasticSearchHelper.GetInstance(ConfigurationHelper.Instance))
 {
     // do call the other constructor
 }
 public SearchWorker() :
     this(ElasticSearchHelper.GetInstance(ConfigurationHelper.Instance))
 {
 }
 // This always calls the next constructor and singleton instance of Elastic client is used
 // This is the replacement of AddSingleton
 // public SearchWorker() : this(ElasticSearchHelper.GetInstance(ConfigurationHelper.Instance))
 public SearchWorker() : this(ElasticSearchHelper.GetInstance())
 {
 }