2021-05-06 15:39:20 -07:00
|
|
|
#nullable disable
|
|
|
|
|
2020-12-02 19:51:53 -07:00
|
|
|
using System.Threading;
|
|
|
|
using MediaBrowser.Controller.Entities;
|
2020-10-27 16:57:52 -07:00
|
|
|
using MediaBrowser.Model.Configuration;
|
|
|
|
|
|
|
|
namespace MediaBrowser.Controller.BaseItemManager
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// The <c>BaseItem</c> manager.
|
|
|
|
/// </summary>
|
|
|
|
public interface IBaseItemManager
|
|
|
|
{
|
2020-12-02 19:51:53 -07:00
|
|
|
/// <summary>
|
|
|
|
/// Gets the semaphore used to limit the amount of concurrent metadata refreshes.
|
|
|
|
/// </summary>
|
2020-12-03 00:23:13 -07:00
|
|
|
SemaphoreSlim MetadataRefreshThrottler { get; }
|
2020-12-02 19:51:53 -07:00
|
|
|
|
2020-10-27 16:57:52 -07:00
|
|
|
/// <summary>
|
|
|
|
/// Is metadata fetcher enabled.
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="baseItem">The base item.</param>
|
|
|
|
/// <param name="libraryOptions">The library options.</param>
|
|
|
|
/// <param name="name">The metadata fetcher name.</param>
|
|
|
|
/// <returns><c>true</c> if metadata fetcher is enabled, else false.</returns>
|
|
|
|
bool IsMetadataFetcherEnabled(BaseItem baseItem, LibraryOptions libraryOptions, string name);
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Is image fetcher enabled.
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="baseItem">The base item.</param>
|
|
|
|
/// <param name="libraryOptions">The library options.</param>
|
|
|
|
/// <param name="name">The image fetcher name.</param>
|
|
|
|
/// <returns><c>true</c> if image fetcher is enabled, else false.</returns>
|
|
|
|
bool IsImageFetcherEnabled(BaseItem baseItem, LibraryOptions libraryOptions, string name);
|
|
|
|
}
|
|
|
|
}
|