public SoFakingWorker(ILogger <SoFakingWorker> logger, ILogger <FFMPEGEncoderService> loggerEnc, IHttpClientFactory clientFactory, DownloadFinishedWorkerConfiguration configuration, MovieService movieService, ITorrentClientService torrentClient, /* IEncoderService encoderService,*/ SoFakingConfiguration sofakingConfiguration, EncoderConfiguration encoderConfiguration) { if (clientFactory == null) { throw new ArgumentNullException(nameof(clientFactory)); } if (movieService == null) { throw new ArgumentNullException(nameof(movieService)); } if (configuration == null) { throw new ArgumentNullException(nameof(configuration)); } if (logger == null) { throw new ArgumentNullException(nameof(logger)); } if (loggerEnc == null) { throw new ArgumentNullException(nameof(loggerEnc)); } if (torrentClient == null) { throw new ArgumentNullException(nameof(torrentClient)); } if (encoderConfiguration == null) { throw new ArgumentNullException(nameof(encoderConfiguration)); } if (sofakingConfiguration == null) { throw new ArgumentNullException(nameof(sofakingConfiguration)); } _sofakingConfiguration = sofakingConfiguration; _clientFactory = clientFactory; _movieService = movieService; _configuration = configuration; _logger = logger; _loggerEnc = loggerEnc; _torrentClient = torrentClient; _encoderConfiguration = encoderConfiguration; }
public TorrentClientController(ILogger <TorrentController> logger, ITorrentClientService torrentClientService) { _logger = logger; _torrentClientService = torrentClientService; }