mirror of
https://github.com/Kareadita/Kavita.git
synced 2026-03-10 20:15:26 -04:00
Co-authored-by: Joseph Milazzo <joseph.v.milazzo@gmail.com> Co-authored-by: Joe Milazzo <josephmajora@gmail.com>
22 lines
531 B
C#
22 lines
531 B
C#
using System.Threading.Tasks;
|
|
|
|
namespace Kavita.API.Services.Scanner;
|
|
|
|
public interface ILibraryWatcher
|
|
{
|
|
/// <summary>
|
|
/// Start watching all library folders
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
Task StartWatching();
|
|
/// <summary>
|
|
/// Stop watching all folders
|
|
/// </summary>
|
|
void StopWatching();
|
|
/// <summary>
|
|
/// Essentially stops then starts watching. Useful if there is a change in folders or libraries
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
Task RestartWatching();
|
|
}
|