Exemplo n.º 1
0
 public ArtistLookupEngine(IRoadieSettings configuration, IHttpEncoder httpEncoder, IRoadieDbContext context, ICacheManager cacheManager, ILogger logger)
     : base(configuration, httpEncoder, context, cacheManager, logger)
 {
     this.ITunesArtistSearchEngine      = new ITunesSearchEngine(this.Configuration, this.CacheManager, this.Logger);
     this.MusicBrainzArtistSearchEngine = new musicbrainz.MusicBrainzProvider(this.Configuration, this.CacheManager, this.Logger);
     this.LastFmArtistSearchEngine      = new lastfm.LastFmHelper(this.Configuration, this.CacheManager, this.Logger);
     this.SpotifyArtistSearchEngine     = new spotify.SpotifyHelper(this.Configuration, this.CacheManager, this.Logger);
     this.WikipediaArtistSearchEngine   = new wikipedia.WikipediaHelper(this.Configuration, this.CacheManager, this.Logger, this.HttpEncoder);
     this.DiscogsArtistSearchEngine     = new discogs.DiscogsHelper(this.Configuration, this.CacheManager, this.Logger);
 }
Exemplo n.º 2
0
 public ArtistLookupEngine(IRoadieSettings configuration, IHttpEncoder httpEncoder, IRoadieDbContext context,
                           ICacheManager cacheManager, ILogger <ArtistLookupEngine> logger, musicbrainz.IMusicBrainzProvider musicBrainzProvider,
                           lastfm.ILastFmHelper lastFmHelper, spotify.ISpotifyHelper spotifyHelper, wikipedia.IWikipediaHelper wikipediaHelper,
                           discogs.IDiscogsHelper discogsHelper, IITunesSearchEngine iTunesSearchEngine)
     : base(configuration, httpEncoder, context, cacheManager, logger)
 {
     ITunesArtistSearchEngine      = iTunesSearchEngine;
     MusicBrainzArtistSearchEngine = musicBrainzProvider;
     LastFmArtistSearchEngine      = lastFmHelper;
     SpotifyArtistSearchEngine     = spotifyHelper;
     WikipediaArtistSearchEngine   = wikipediaHelper;
     DiscogsArtistSearchEngine     = discogsHelper;
 }