ILibraryMonitor.cs 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. namespace MediaBrowser.Controller.Library
  2. {
  3. /// <summary>
  4. /// Service responsible for monitoring library filesystems for changes.
  5. /// </summary>
  6. public interface ILibraryMonitor
  7. {
  8. /// <summary>
  9. /// Starts this instance.
  10. /// </summary>
  11. void Start();
  12. /// <summary>
  13. /// Stops this instance.
  14. /// </summary>
  15. void Stop();
  16. /// <summary>
  17. /// Reports the file system change beginning.
  18. /// </summary>
  19. /// <param name="path">The path.</param>
  20. void ReportFileSystemChangeBeginning(string path);
  21. /// <summary>
  22. /// Reports the file system change complete.
  23. /// </summary>
  24. /// <param name="path">The path.</param>
  25. /// <param name="refreshPath">if set to <c>true</c> [refresh path].</param>
  26. void ReportFileSystemChangeComplete(string path, bool refreshPath);
  27. /// <summary>
  28. /// Reports the file system changed.
  29. /// </summary>
  30. /// <param name="path">The path.</param>
  31. void ReportFileSystemChanged(string path);
  32. }
  33. }