Exemplo n.º 1
0
        public LivechatController(
            LivechatRules livechatRules,
            UOW uow)
        {
            this.livechatRules = livechatRules;
            this.uow           = uow;

            logRepository = uow.GetRepository <LogRepository>();
        }
Exemplo n.º 2
0
 public AgentHubRules(
     LivechatRules livechatRules,
     IUserTracker <MktChatHub> userTracker,
     IGroupManager groupManager,
     IHubCallerClients clientsManager,
     IChatConversationHandler conversationHandler
     )
 {
     this.livechatRules       = livechatRules ?? throw new System.ArgumentNullException(nameof(livechatRules));
     this.userTracker         = userTracker ?? throw new System.ArgumentNullException(nameof(userTracker));
     this.groupManager        = groupManager ?? throw new System.ArgumentNullException(nameof(groupManager));
     this.clientsManager      = clientsManager ?? throw new System.ArgumentNullException(nameof(clientsManager));
     this.conversationHandler = conversationHandler ?? throw new System.ArgumentNullException(nameof(conversationHandler));
 }
Exemplo n.º 3
0
        public MktChatHub(
            IUserTracker <MktChatHub> userTracker,
            PushNotificationService pushNotificationService,
            LivechatRules livechatRules,
            UOW uow,
            IConfiguration configuration
            ) : base(userTracker)
        {
            this.livechatRules           = livechatRules;
            this.uow                     = uow ?? throw new ArgumentNullException(nameof(uow));
            this.configuration           = configuration;
            this.userTracker             = userTracker ?? throw new ArgumentNullException(nameof(userTracker));
            this.pushNotificationService = pushNotificationService;

            logRepository = this.uow.GetRepository <LogRepository>();
        }
        public CustomerHubRules(
            LivechatRules livechatRules,
            IGroupManager groupManager,
            HubCallerContext context,
            IHubCallerClients clientsManager,
            IChatConversationHandler conversationHandler
            )
        {
            this.livechatRules       = livechatRules ?? throw new ArgumentNullException(nameof(livechatRules));
            this.groupManager        = groupManager ?? throw new ArgumentNullException(nameof(groupManager));
            this.context             = context ?? throw new ArgumentNullException(nameof(context));
            this.clientsManager      = clientsManager ?? throw new ArgumentNullException(nameof(clientsManager));
            this.conversationHandler = conversationHandler ?? throw new ArgumentNullException(nameof(conversationHandler));

            currentUser = clientsManager.Client(context.ConnectionId);
        }