/// <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); }
/// <summary> /// contructor ChatLeadController /// </summary> /// <param name="chatLeadRepository"></param> public ChatLeadController(IChatLeadRepository chatLeadRepository) { _chatLeadRepository = chatLeadRepository; }