예제 #1
0
 public Worker(
     ILogger <Worker> logger,
     IChannelRepository channelRepository,
     IAggregateVideoPublishTimesUseCase aggregateVideoPublishTimesUseCase,
     IChannelPublishPredictionRepository channelPublishPredictionRepository)
 {
     _logger            = logger;
     _channelRepository = channelRepository;
     _aggregateVideoPublishTimesUseCase  = aggregateVideoPublishTimesUseCase;
     _channelPublishPredictionRepository = channelPublishPredictionRepository;
 }
예제 #2
0
 public ChannelResolver(
     IChannelRepository channelRepository,
     IIdentifySailingChannelUseCase identifySailingChannelUseCase,
     IMapper mapper,
     IChannelPublishPredictionRepository channelPublishPredictionRepository)
 {
     _channelRepository             = channelRepository ?? throw new ArgumentNullException(nameof(channelRepository));
     _identifySailingChannelUseCase = identifySailingChannelUseCase ?? throw new ArgumentNullException(nameof(identifySailingChannelUseCase));
     _mapper = mapper ?? throw new ArgumentNullException("mapper");
     _channelPublishPredictionRepository = channelPublishPredictionRepository ?? throw new ArgumentNullException(nameof(channelPublishPredictionRepository));
 }