public PlaylistSynchronizer(ILogger <PlaylistSynchronizer> logger, IAppConfig appConfig, IPlaylistLoader playlistLoader,
                             PlaylistContext playlistContext)
 {
     _playlistContext = playlistContext ?? throw new ArgumentNullException(nameof(playlistContext));
     _appConfig       = appConfig ?? throw new ArgumentNullException(nameof(appConfig));
     _logger          = logger ?? throw new ArgumentNullException(nameof(logger));
     _playlistLoader  = playlistLoader ?? throw new ArgumentNullException(nameof(playlistLoader));
     _proxyUrl        = GetProxyUrl();
 }
Ejemplo n.º 2
0
 public DirFileLoader(IPlaylistLoader cacheLoader, string dirPath)
 {
     _cacheLoader = cacheLoader;
     _dirPath     = dirPath;
 }