public ChatbotCommandHandler(IChatbotRepository chatbotRepository,
                              IUnitOfWork uow,
                              IMediatorHandler bus,
                              INotificationHandler <DomainNotification> notifications) : base(uow, bus, notifications)
 {
     _chatbotRepository = chatbotRepository;
     Bus = bus;
 }
 public ChatbotAppService(IMapper mapper,
                          IChatbotRepository chatbotRepository,
                          IMediatorHandler bus)
 {
     _mapper            = mapper;
     _chatbotRepository = chatbotRepository;
     Bus = bus;
 }
 public AdministratorController(
     IAdminRepository repository,
     IChatbotRepository chatbotRepository,
     IEmailSender emailSender,
     UserManager <ApplicationUser> userManager,
     IHubContext <Hub> chatHub)
 {
     _userManager           = userManager;
     _emailSender           = emailSender;
     this.repository        = repository;
     _chatHub               = chatHub;
     this.chatbotRepository = chatbotRepository;
 }
示例#4
0
        /*
         * // Keep track of all users in queue to chat with a chat-worker
         * private static ConcurrentQueue<int> _queue = new ConcurrentQueue<int>();
         * private static ConcurrentDictionary<string, int> _inQueue = new ConcurrentDictionary<string, int>();
         */

        //private static ChatQueue _fullChatQueue = new ChatQueue();

        //IEnumerable<ChatGroup> _allChatGroups;
        //IEnumerable<ChatQueue> _allChatQueues;

        public ChatHub(IChatRepository chatRepository,
                       IChatbotRepository chatbotRepository,
                       IChatBot chatBot,
                       UserManager <ApplicationUser> userManager,
                       IOptions <RoleOptions> roleOptions,
                       IOptions <ChatbotKeywordOptions> keywordOptions)
        {
            _chatRepository    = chatRepository;
            _chatBotRepository = chatbotRepository;
            _chatBot           = chatBot;
            _userManager       = userManager;
            _roleOptions       = roleOptions.Value;
            _keywordOptions    = keywordOptions.Value;
        }
示例#5
0
 public QnAChatBot(IChatbotRepository chatBotRepository)
 {
     _chatBotRepository = chatBotRepository;
 }
 public ChatbotController(IChatbotRepository chatbotRepository)
 {
     this.chatbotRepository = chatbotRepository;
 }