Move lastfm resource pool to base

pull/702/head
Eric Reed 12 years ago
parent 669eeed8cf
commit c1eb5a3b60

@ -18,7 +18,6 @@ namespace MediaBrowser.Controller.Providers.Music
{ {
public class LastfmArtistProvider : LastfmBaseArtistProvider public class LastfmArtistProvider : LastfmBaseArtistProvider
{ {
internal readonly SemaphoreSlim LastfmResourcePool = new SemaphoreSlim(5, 5);
public LastfmArtistProvider(IJsonSerializer jsonSerializer, IHttpClient httpClient, ILogManager logManager, IServerConfigurationManager configurationManager) public LastfmArtistProvider(IJsonSerializer jsonSerializer, IHttpClient httpClient, ILogManager logManager, IServerConfigurationManager configurationManager)
: base(jsonSerializer, httpClient, logManager, configurationManager) : base(jsonSerializer, httpClient, logManager, configurationManager)

@ -24,6 +24,8 @@ namespace MediaBrowser.Controller.Providers.Music
/// </summary> /// </summary>
public abstract class LastfmBaseProvider : BaseMetadataProvider public abstract class LastfmBaseProvider : BaseMetadataProvider
{ {
protected static readonly SemaphoreSlim LastfmResourcePool = new SemaphoreSlim(5, 5);
/// <summary> /// <summary>
/// Initializes a new instance of the <see cref="LastfmBaseProvider" /> class. /// Initializes a new instance of the <see cref="LastfmBaseProvider" /> class.
/// </summary> /// </summary>

Loading…
Cancel
Save