コード例 #1
0
 public CommentsHub(IArticleRepository articleRepo, IUserRepository usersRepo, ICommentsRepository commentsRepo, INotifiactionsRepository notifyRepo)
 {
     commentsHelper          = new CommentsHelper();
     notifiCountCache        = new NotifiCountCache();
     articleRepository       = articleRepo;
     usersRepository         = usersRepo;
     commentsRepository      = commentsRepo;
     notoficationsRepository = notifyRepo;
 }
コード例 #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();
 }
コード例 #3
0
ファイル: NewsController.cs プロジェクト: VadimChumak/dip_rob
        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;
        }