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;
 }
示例#2
0
 public NewsController(
     IArticleRepository repo,
     IUserRepository userRepo,
     ITagRepository tagRepo,
     ICommentsRepository commentsRepository,
     INotifiactionsRepository notifiRepo)
 {
     notificationRepo        = notifiRepo;
     notifiCountCache        = new NotificationsCountService(notificationRepo);
     this.userRepo           = userRepo;
     this.tagRepo            = tagRepo;
     this.repo               = repo;
     this.commentsRepository = commentsRepository;
 }
示例#3
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 NotificationsCountService(notifiRepo);
 }