Пример #1
0
 public PostsController(IPostApplicationService postApplicationService, IChannelApplicationService channelApplicationService, ReposterBot bot, IScheduleItemApplicationService scheduleService)
 {
     _postApplicationService    = postApplicationService;
     _channelApplicationService = channelApplicationService;
     _bot             = bot;
     _scheduleService = scheduleService;
 }
Пример #2
0
 public ReposterWorker(AbpTimer timer, IScheduleItemApplicationService scheduleService, IPostApplicationService postService, IChannelApplicationService channelService, ReposterBot bot) : base(timer)
 {
     _scheduleService = scheduleService;
     _postService     = postService;
     _channelService  = channelService;
     _bot             = bot;
     timer.Period     = 1000 * 60;
 }