using System; using System.Threading; using System.Threading.Tasks; using MediaBrowser.Controller.Collections; using MediaBrowser.Controller.Library; using MediaBrowser.Controller.Persistence; using Microsoft.Extensions.Logging; namespace Emby.Server.Implementations.Library.Validators { /// /// Class CollectionPostScanTask. /// public class CollectionPostScanTask : ILibraryPostScanTask { /// /// The _library manager. /// private readonly ILibraryManager _libraryManager; private readonly ICollectionManager _collectionManager; private readonly ILogger _logger; /// /// Initializes a new instance of the class. /// /// The library manager. /// The collection manager. /// The logger. public CollectionPostScanTask( ILibraryManager libraryManager, ILogger logger, ICollectionManager collectionManager) { _libraryManager = libraryManager; _collectionManager = collectionManager; _logger = logger; } /// /// Runs the specified progress. /// /// The progress. /// The cancellation token. /// Task. public Task Run(IProgress progress, CancellationToken cancellationToken) { return new CollectionValidator(_libraryManager, _collectionManager, _logger).Run(progress, cancellationToken); } } }