public DailyTopicReplyController(IAppUserRepository appUserRepo, IMapper mapper, INotificationRepository notificationRepo, IDailyTopicRepository topicRepo) : base(appUserRepo, mapper) { this._notificationRepo = notificationRepo; this._topicRepo = topicRepo; }
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>(); }
public DailyTopicCommentController(IAppUserRepository appUserRepo, IDailyTopicRepository topicRepo, IMapper mapper) : base(appUserRepo, mapper) { this._topicRepo = topicRepo; }