コード例 #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
ファイル: FeedManager.cs プロジェクト: JuanVanH/Integratie
 public FeedManager()
 {
     repo = new FeedRepo();
 }
コード例 #4
0
 public ThemeManager()
 {
     repo     = new ThemeRepo();
     subjRepo = new SubjectRepo();
     feedRepo = new FeedRepo();
 }