public CommentsHub(IArticleRepository articleRepo, IUserRepository usersRepo, ICommentsRepository commentsRepo, INotifiactionsRepository notifyRepo)
 {
     commentsHelper          = new CommentsHelper();
     notifiCountCache        = new NotificationsCountService(notifyRepo);
     articleRepository       = articleRepo;
     usersRepository         = usersRepo;
     commentsRepository      = commentsRepo;
     notoficationsRepository = notifyRepo;
 }
Esempio n. 2
0
 public AccountController(UserManager <AppUser, int> userManager, SignInManager <AppUser, int> signInManager,
                          IUserRepository repo, ITagRepository tagRepo, INotifiactionsRepository notifiRepo)
 {
     UserManager      = userManager;
     SignInManager    = signInManager;
     this.repo        = repo;
     this.tagRepo     = tagRepo;
     this.notifiRepo  = notifiRepo;
     notifiCountCache = new NotifiCountCache();
 }
Esempio n. 3
0
        public NewsController(IArticleRepository repo, IUserRepository userRepo, ITagRepository tagRepo, ICommentsRepository commentsRepository, INotifiactionsRepository notifiRepo)

        {
            notificationRepo        = notifiRepo;
            notifiCountCache        = new NotifiCountCache();
            this.userRepo           = userRepo;
            this.tagRepo            = tagRepo;
            this.repo               = repo;
            this.commentsRepository = commentsRepository;
        }
 public NotificationsCountService(INotifiactionsRepository notifiRepo)
 {
     this.notifiRepo = notifiRepo;
 }