/// <summary>
 /// Creates a new instance of a CancerGovBestBetsClient
 /// </summary>
 /// <param name="client">The client to be used for connections</param>
 /// <param name="config">The client to be used for connections</param>
 /// <param name="logger">The client to be used for connections</param>
 public ESBestBetsDisplayService(IElasticClient client,
                                 IOptions <CGBBIndexOptions> config,
                                 ILogger <ESBestBetsDisplayService> logger)
 {
     _elasticClient  = client;
     _bestbetsConfig = config.Value;
     _logger         = logger;
 }
Beispiel #2
0
 /// <summary>
 /// Creates a new instance of a ESBestBetsMatchService
 /// </summary>
 public ESTokenAnalyzerService(IElasticClient client,
                               IOptions <CGBBIndexOptions> bestbetsConfig,
                               ILogger <ESTokenAnalyzerService> logger) //Needs someway to get an IElasticClient
 {
     _elasticClient  = client;
     _bestbetsConfig = bestbetsConfig.Value;
     _logger         = logger;
 }
Beispiel #3
0
 /// <summary>
 /// Creates a new instance of a ESBestBetsMatchService
 /// </summary>
 public ESBestBetsMatchService(IElasticClient client,
                               ITokenAnalyzerService tokenAnalyzer,
                               IOptions <CGBBIndexOptions> config,
                               ILogger <ESBestBetsMatchService> logger)
 {
     _elasticClient  = client;
     _tokenAnalyzer  = tokenAnalyzer;
     _bestbetsConfig = config.Value;
     _logger         = logger;
 }