Esempio n. 1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="chatLeadRepository"></param>
        /// <param name="esSettings"></param>
        public CreateChatLeadConsumer(
            IChatLeadRepository chatLeadRepository,
            IOptions <ElasticSearchSettings> esSettings)
        {
            _chatLeadRepository = chatLeadRepository;
            var node         = new Uri($"http://{esSettings.Value.Host}:{esSettings.Value.Port}");
            var connSettings = new ConnectionSettings(node);

            _esClient = new ElasticClient(connSettings);
        }
Esempio n. 2
0
 /// <summary>
 /// contructor ChatLeadController
 /// </summary>
 /// <param name="chatLeadRepository"></param>
 public ChatLeadController(IChatLeadRepository chatLeadRepository)
 {
     _chatLeadRepository = chatLeadRepository;
 }