public PlaylistsController(IMemoryCache memoryCache, IMediaScraper mediaScraper, IOptions <ElasticConfig> config, ILoggerFactory loggerFactory, IOptions <GlobalOptions> globalOptions, IElasticConnectionClient elasticConnectionClient, SynkerDbContext context, IPlaylistService playlistService, ISitePackService sitePackService, IXtreamService xtreamService, IProviderFactory providerFactory) : base(config, loggerFactory, elasticConnectionClient, context) { _playlistService = playlistService ?? throw new ArgumentNullException(nameof(playlistService)); _mediaScraper = mediaScraper ?? throw new ArgumentNullException(nameof(mediaScraper)); _memoryCache = memoryCache ?? throw new ArgumentNullException(nameof(memoryCache)); _sitePackService = sitePackService ?? throw new ArgumentNullException(nameof(sitePackService)); _globalOptions = globalOptions.Value ?? throw new ArgumentNullException(nameof(globalOptions)); _xtreamService = xtreamService ?? throw new ArgumentNullException(nameof(xtreamService)); _providerFactory = providerFactory ?? throw new ArgumentNullException(nameof(providerFactory)); }
public XtreamController(IXtreamService xtreamService, IOptions <ElasticConfig> config, ILoggerFactory loggerFactory, IElasticConnectionClient elasticConnectionClient, SynkerDbContext context) : base(config, loggerFactory, elasticConnectionClient, context) { _xtreamService = xtreamService ?? throw new ArgumentNullException(nameof(xtreamService)); }