Exemplo n.º 1
0
 public ForumCategoriesManager(IForumCategoriesRepository forumcategoriesRepository, IForumThreadsRepository forumThreadsRepository, IForumCommentsRepository forumCommentsRepository, ICacheHandler cacheHandler) : base(forumcategoriesRepository, cacheHandler.ForumCategoryCache, cacheHandler.ForumCategoryCacheLock)
 {
     _forumcategoriesRepository = forumcategoriesRepository;
     _forumThreadsRepository    = forumThreadsRepository;
     _forumCommentsRepository   = forumCommentsRepository;
     _forumCategoryCache        = cacheHandler.ForumCategoryCache;
     _forumCategoryCacheLock    = cacheHandler.ForumCategoryCacheLock;
 }
 public ForumThreadsManager(IForumThreadsRepository forumthreadsRepository, IForumCommentsRepository forumCommentsRepository, ICacheHandler cacheHandler) : base(
         forumthreadsRepository)
 {
     _forumthreadsRepository  = forumthreadsRepository;
     _forumCommentsRepository = forumCommentsRepository;
     _forumCache     = cacheHandler.ForumCache;
     _forumCacheLock = cacheHandler.ForumCacheLock;
 }
Exemplo n.º 3
0
 public UnitOfWork(DatabaseContext context,
                   IUsersRepository users,
                   IInvitationsRepository invitations,
                   IFriendshipsRepository friendships,
                   IInformationsRepository informations,
                   IQuizzesRepository quizes,
                   IQuizQuestionsRepository quizQuestions,
                   IQuizAnswersRepository quizAnswers,
                   IQuizScoresRepository quizScores,
                   IFilesRepository files,
                   IFilmWatchingsRepository filmWatchings,
                   IFilmsRepository films,
                   IFilmPeopleRepository filmPeople,
                   IPersonMarksRepository personMarks,
                   IInformationCommentsRepository informationComments,
                   IForumThreadsRepository forumThreads,
                   IForumThreadCommentsRepository forumThreadComments,
                   IMessagesRepository messages,
                   ISignalRConnectionsRepository signalRConnections,
                   IMessagesReadingsRepository messagesReadings,
                   IConversationsRepository conversations,
                   IInvitationNotificationsRepository invitationNotifications,
                   INotificationsReadingsRepository notificationsReadings,
                   IPeopleInRolesRepository peopleInRoles)
 {
     Context                 = context;
     Users                   = users;
     Friendships             = friendships;
     Invitations             = invitations;
     Informations            = informations;
     Quizzes                 = quizes;
     QuizQuestions           = quizQuestions;
     QuizAnswers             = quizAnswers;
     QuizScores              = quizScores;
     Files                   = files;
     FilmWatchings           = filmWatchings;
     Films                   = films;
     FilmPeople              = filmPeople;
     PersonMarks             = personMarks;
     InformationComments     = informationComments;
     ForumThreads            = forumThreads;
     ForumThreadComments     = forumThreadComments;
     Messages                = messages;
     SignalRConnections      = signalRConnections;
     MessagesReadings        = messagesReadings;
     Conversations           = conversations;
     InvitationNotifications = invitationNotifications;
     NotificationsReadings   = notificationsReadings;
     PeopleInRoles           = peopleInRoles;
 }
 public ThreadsService(IForumThreadsRepository threadsRepo, IForumsCrawler crawler)
 {
     this.threadsRepo = threadsRepo;
     forumsCrawler    = crawler;
 }
Exemplo n.º 5
0
 public ForumThreadsController(IForumThreadsRepository context, IMapper mapper, UserManager <User> userManager)
 {
     this.context     = context;
     this.mapper      = mapper;
     this.userManager = userManager;
 }