public MusicBrainzAlbumProvider(ILogManager logManager, IServerConfigurationManager configurationManager, IHttpClient httpClient)
            : base(logManager, configurationManager)
        {
            _httpClient = httpClient;

            Current = this;
        }
 public MusicBrainzAlbumProvider(IHttpClient httpClient, IApplicationHost appHost, ILogger logger, IJsonSerializer json)
 {
     _httpClient = httpClient;
     _appHost    = appHost;
     _logger     = logger;
     _json       = json;
     Current     = this;
 }
Exemple #4
0
 public MusicBrainzAlbumProvider(IHttpClient httpClient, IApplicationHost appHost, ILogger logger, IJsonSerializer json, IXmlReaderSettingsFactory xmlSettings)
 {
     _httpClient  = httpClient;
     _appHost     = appHost;
     _logger      = logger;
     _json        = json;
     _xmlSettings = xmlSettings;
     Current      = this;
 }
 public MusicBrainzAlbumProvider(
     IHttpClient httpClient,
     IApplicationHost appHost,
     ILogger logger,
     IJsonSerializer json,
     IXmlReaderSettingsFactory xmlSettings,
     IConfiguration configuration)
 {
     _httpClient        = httpClient;
     _appHost           = appHost;
     _logger            = logger;
     _json              = json;
     _xmlSettings       = xmlSettings;
     MusicBrainzBaseUrl = configuration["MusicBrainz:BaseUrl"];
     Current            = this;
 }
        public MusicBrainzAlbumProvider(
            IHttpClientFactory httpClientFactory,
            IApplicationHost appHost,
            ILogger <MusicBrainzAlbumProvider> logger)
        {
            _httpClientFactory = httpClientFactory;
            _appHost           = appHost;
            _logger            = logger;

            _musicBrainzBaseUrl         = Plugin.Instance.Configuration.Server;
            _musicBrainzQueryIntervalMs = Plugin.Instance.Configuration.RateLimit;

            // Use a stopwatch to ensure we don't exceed the MusicBrainz rate limit
            _stopWatchMusicBrainz.Start();

            Current = this;
        }
Exemple #7
0
        public MusicBrainzAlbumProvider(
            IHttpClient httpClient,
            IApplicationHost appHost,
            ILogger logger,
            IConfiguration configuration)
        {
            _httpClient = httpClient;
            _appHost    = appHost;
            _logger     = logger;

            _musicBrainzBaseUrl = configuration["MusicBrainz:BaseUrl"];

            // Use a stopwatch to ensure we don't exceed the MusicBrainz rate limit
            _stopWatchMusicBrainz.Start();

            Current = this;
        }