示例#1
0
        public FeedController(ULearnDb db, CourseManager courseManager)
        {
            this.db            = db;
            this.courseManager = courseManager;
            feedRepo           = new FeedRepo(db);

            if (commonFeedNotificationTransport == null)
            {
                commonFeedNotificationTransport = feedRepo.GetCommonFeedNotificationTransport();
            }
        }
示例#2
0
        public NotificationsController(ILogger logger, WebCourseManager courseManager, UlearnDb db, NotificationsRepo notificationsRepo, FeedRepo feedRepo, NotificationDataPreloader notificationDataPreloader)
            : base(logger, courseManager, db)
        {
            this.notificationsRepo         = notificationsRepo ?? throw new ArgumentNullException(nameof(notificationsRepo));
            this.feedRepo                  = feedRepo ?? throw new ArgumentNullException(nameof(feedRepo));
            this.notificationDataPreloader = notificationDataPreloader;

            if (commentsFeedNotificationTransport == null)
            {
                commentsFeedNotificationTransport = feedRepo.GetCommentsFeedNotificationTransport();
            }
        }
示例#3
0
 public FeedManager()
 {
     repo = new FeedRepo();
 }
示例#4
0
 public ThemeManager()
 {
     repo     = new ThemeRepo();
     subjRepo = new SubjectRepo();
     feedRepo = new FeedRepo();
 }