Beispiel #1
0
 public WebSocketNotificationSender(IHubContext <ClientHub> hubContext, INotificationsRepo repo,
                                    IUnitOfWork unitOfWork)
 {
     _hubContext = hubContext;
     _repo       = repo;
     _unitOfWork = unitOfWork;
 }
Beispiel #2
0
 public FeedRepo(UlearnDb db, INotificationsRepo notificationsRepo, IVisitsRepo visitsRepo, ILogger logger)
 {
     this.db = db ?? throw new ArgumentNullException(nameof(db));
     this.notificationsRepo = notificationsRepo ?? throw new ArgumentNullException(nameof(notificationsRepo));
     this.visitsRepo        = visitsRepo ?? throw new ArgumentNullException(nameof(visitsRepo));
     this.logger            = logger;
 }
 public NotificationMessageHandler(INotificationsRepo repo, INotificationMessageGenerator messageGenerator,
                                   INotificationMessageDispatcher messageDispatcher, ICurrentUserAccessor currentUserAccessor)
 {
     _repo                = repo;
     _messageGenerator    = messageGenerator;
     _messageDispatcher   = messageDispatcher;
     _currentUserAccessor = currentUserAccessor;
 }
Beispiel #4
0
 public GroupsController(IWebCourseManager courseManager, UlearnDb db,
                         IUsersRepo usersRepo,
                         IGroupsRepo groupsRepo, IGroupAccessesRepo groupAccessesRepo, IGroupMembersRepo groupMembersRepo, INotificationsRepo notificationsRepo)
     : base(courseManager, db, usersRepo)
 {
     this.groupsRepo        = groupsRepo;
     this.groupAccessesRepo = groupAccessesRepo;
     this.groupMembersRepo  = groupMembersRepo;
     this.notificationsRepo = notificationsRepo;
 }
Beispiel #5
0
 public ReviewCommentsController(IWebCourseManager courseManager, UlearnDb db, IUsersRepo usersRepo,
                                 ISlideCheckingsRepo slideCheckingsRepo, ICourseRolesRepo courseRolesRepo, IUnitsRepo unitsRepo, INotificationsRepo notificationsRepo)
     : base(courseManager, db, usersRepo)
 {
     this.slideCheckingsRepo = slideCheckingsRepo;
     this.courseRolesRepo    = courseRolesRepo;
     this.unitsRepo          = unitsRepo;
     this.notificationsRepo  = notificationsRepo;
     this.notificationsRepo  = notificationsRepo;
 }
Beispiel #6
0
 public BaseCommentController(ILogger logger, IWebCourseManager courseManager, UlearnDb db, IUsersRepo usersRepo,
                              ICommentsRepo commentsRepo, ICommentLikesRepo commentLikesRepo, ICoursesRepo coursesRepo, ICourseRolesRepo courseRolesRepo, INotificationsRepo notificationsRepo)
     : base(logger, courseManager, db, usersRepo)
 {
     this.commentsRepo      = commentsRepo;
     this.commentLikesRepo  = commentLikesRepo;
     this.coursesRepo       = coursesRepo;
     this.courseRolesRepo   = courseRolesRepo;
     this.notificationsRepo = notificationsRepo;
 }
Beispiel #7
0
 public GroupController(ILogger logger, WebCourseManager courseManager, UlearnDb db,
                        IGroupsRepo groupsRepo, IGroupAccessesRepo groupAccessesRepo, IGroupMembersRepo groupMembersRepo, IUsersRepo usersRepo, ICourseRolesRepo courseRolesRepo, INotificationsRepo notificationsRepo,
                        IGroupsCreatorAndCopier groupsCreatorAndCopier)
     : base(logger, courseManager, db, usersRepo)
 {
     this.groupsRepo             = groupsRepo;
     this.groupAccessesRepo      = groupAccessesRepo;
     this.groupMembersRepo       = groupMembersRepo;
     this.courseRolesRepo        = courseRolesRepo;
     this.notificationsRepo      = notificationsRepo;
     this.groupsCreatorAndCopier = groupsCreatorAndCopier;
 }
Beispiel #8
0
 public BaseCommentController(IWebCourseManager courseManager, UlearnDb db, IUsersRepo usersRepo,
                              ICommentsRepo commentsRepo, ICommentLikesRepo commentLikesRepo, ICoursesRepo coursesRepo, ICourseRolesRepo courseRolesRepo,
                              INotificationsRepo notificationsRepo, IGroupMembersRepo groupMembersRepo, IGroupAccessesRepo groupAccessesRepo)
     : base(courseManager, db, usersRepo)
 {
     this.commentsRepo      = commentsRepo;
     this.commentLikesRepo  = commentLikesRepo;
     this.coursesRepo       = coursesRepo;
     this.courseRolesRepo   = courseRolesRepo;
     this.notificationsRepo = notificationsRepo;
     this.groupMembersRepo  = groupMembersRepo;
     this.groupAccessesRepo = groupAccessesRepo;
 }
Beispiel #9
0
 public GroupController(IWebCourseManager courseManager, UlearnDb db,
                        IGroupsRepo groupsRepo, IGroupAccessesRepo groupAccessesRepo, IGroupMembersRepo groupMembersRepo, IUsersRepo usersRepo, ICourseRolesRepo courseRolesRepo, INotificationsRepo notificationsRepo,
                        IGroupsCreatorAndCopier groupsCreatorAndCopier, IUnitsRepo unitsRepo, ISlideCheckingsRepo slideCheckingsRepo)
     : base(courseManager, db, usersRepo)
 {
     this.groupsRepo             = groupsRepo;
     this.groupAccessesRepo      = groupAccessesRepo;
     this.groupMembersRepo       = groupMembersRepo;
     this.courseRolesRepo        = courseRolesRepo;
     this.notificationsRepo      = notificationsRepo;
     this.groupsCreatorAndCopier = groupsCreatorAndCopier;
     this.unitsRepo          = unitsRepo;
     this.slideCheckingsRepo = slideCheckingsRepo;
 }
        public NotificationsController(ILogger logger, WebCourseManager courseManager, UlearnDb db,
                                       IUsersRepo usersRepo,
                                       INotificationsRepo notificationsRepo, IFeedRepo feedRepo,
                                       IServiceProvider serviceProvider,
                                       INotificationDataPreloader notificationDataPreloader)
            : base(logger, courseManager, db, usersRepo)
        {
            this.notificationsRepo         = notificationsRepo ?? throw new ArgumentNullException(nameof(notificationsRepo));
            this.feedRepo                  = feedRepo ?? throw new ArgumentNullException(nameof(feedRepo));
            this.serviceProvider           = serviceProvider ?? throw new ArgumentNullException(nameof(serviceProvider));
            this.notificationDataPreloader = notificationDataPreloader ?? throw new ArgumentNullException(nameof(notificationDataPreloader));

            if (commentsFeedNotificationTransport == null)
            {
                commentsFeedNotificationTransport = feedRepo.GetCommentsFeedNotificationTransport();
            }
        }
Beispiel #11
0
 public OneTimeEmailSender(IEmailSender emailSender, IUsersRepo usersRepo, INotificationsRepo notificationsRepo)
 {
     this.emailSender       = emailSender;
     this.usersRepo         = usersRepo;
     this.notificationsRepo = notificationsRepo;
 }
Beispiel #12
0
 public CommentPoliciesController(IWebCourseManager courseManager, UlearnDb db, IUsersRepo usersRepo,
                                  ICommentsRepo commentsRepo, ICommentLikesRepo commentLikesRepo, ICoursesRepo coursesRepo, ICourseRolesRepo courseRolesRepo, INotificationsRepo notificationsRepo,
                                  ICommentPoliciesRepo commentPoliciesRepo, IGroupMembersRepo groupMembersRepo, IGroupAccessesRepo groupAccessesRepo, IVisitsRepo visitsRepo)
     : base(courseManager, db, usersRepo, commentsRepo, commentLikesRepo, coursesRepo, courseRolesRepo, notificationsRepo, groupMembersRepo, groupAccessesRepo, visitsRepo)
 {
     this.commentPoliciesRepo = commentPoliciesRepo;
 }
Beispiel #13
0
 public CommentController(ILogger logger, IWebCourseManager courseManager, UlearnDb db,
                          IUsersRepo usersRepo, ICommentsRepo commentsRepo, ICommentLikesRepo commentLikesRepo, ICoursesRepo coursesRepo, ICourseRolesRepo courseRolesRepo,
                          INotificationsRepo notificationsRepo, IGroupMembersRepo groupMembersRepo, IGroupAccessesRepo groupAccessesRepo)
     : base(logger, courseManager, db, usersRepo, commentsRepo, commentLikesRepo, coursesRepo, courseRolesRepo, notificationsRepo, groupMembersRepo, groupAccessesRepo)
 {
 }
Beispiel #14
0
 public FeedRepo(UlearnDb db, INotificationsRepo notificationsRepo, IVisitsRepo visitsRepo)
 {
     this.db = db;
     this.notificationsRepo = notificationsRepo;
     this.visitsRepo        = visitsRepo;
 }
Beispiel #15
0
 public DeliveriesProcessor(INotificationsRepo notificationsRepo, INotificationSender notificationSender, IWebCourseManager courseManager)
 {
     this.notificationsRepo  = notificationsRepo;
     this.notificationSender = notificationSender;
     this.courseManager      = courseManager;
 }