using MediaBrowser.Controller.Library;
using MediaBrowser.Model.Logging;
using System;
using System.Threading;
using System.Threading.Tasks;
namespace MediaBrowser.Server.Implementations.Library.Validators
{
    /// 
    /// Class GameGenresPostScanTask
    /// 
    public class GameGenresPostScanTask : ILibraryPostScanTask
    {
        /// 
        /// The _library manager
        /// 
        private readonly ILibraryManager _libraryManager;
        private readonly ILogger _logger;
        /// 
        /// Initializes a new instance of the  class.
        /// 
        /// The library manager.
        /// The logger.
        public GameGenresPostScanTask(ILibraryManager libraryManager, ILogger logger)
        {
            _libraryManager = libraryManager;
            _logger = logger;
        }
        /// 
        /// Runs the specified progress.
        /// 
        /// The progress.
        /// The cancellation token.
        /// Task.
        public Task Run(IProgress progress, CancellationToken cancellationToken)
        {
            return new GameGenresValidator(_libraryManager, _logger).Run(progress, cancellationToken);
        }
    }
}