public DailyTopicReplyController(IAppUserRepository appUserRepo,
                                  IMapper mapper,
                                  INotificationRepository notificationRepo,
                                  IDailyTopicRepository topicRepo) : base(appUserRepo, mapper)
 {
     this._notificationRepo = notificationRepo;
     this._topicRepo        = topicRepo;
 }
Пример #2
0
        public ChangeTopicTask(IServiceProvider serviceProvider, ILogger <ChangeTopicTask> logger)
        {
            this._logger = logger;
            var serviceScopeFactory = serviceProvider.GetRequiredService <IServiceScopeFactory>();
            var scope = serviceScopeFactory.CreateScope();

            this._repo = scope.ServiceProvider.GetService <IDailyTopicRepository>();
        }
Пример #3
0
 public DailyTopicCommentController(IAppUserRepository appUserRepo, IDailyTopicRepository topicRepo, IMapper mapper) : base(appUserRepo, mapper)
 {
     this._topicRepo = topicRepo;
 }