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