ILibraryPostScanTask.cs 615 B

1234567891011121314151617181920
  1. using System;
  2. using System.Threading;
  3. using System.Threading.Tasks;
  4. namespace MediaBrowser.Controller.Library
  5. {
  6. /// <summary>
  7. /// An interface for tasks that run after the media library scan.
  8. /// </summary>
  9. public interface ILibraryPostScanTask
  10. {
  11. /// <summary>
  12. /// Runs the specified progress.
  13. /// </summary>
  14. /// <param name="progress">The progress.</param>
  15. /// <param name="cancellationToken">The cancellation token.</param>
  16. /// <returns>Task.</returns>
  17. Task Run(IProgress<double> progress, CancellationToken cancellationToken);
  18. }
  19. }