mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-21 09:34:44 +01:00
Created ILibraryMonitor to replace IDirectoryWatchers
This commit is contained in:
@@ -1,29 +0,0 @@
|
||||
using System;
|
||||
|
||||
namespace MediaBrowser.Controller.IO
|
||||
{
|
||||
public interface IDirectoryWatchers : IDisposable
|
||||
{
|
||||
/// <summary>
|
||||
/// Add the path to our temporary ignore list. Use when writing to a path within our listening scope.
|
||||
/// </summary>
|
||||
/// <param name="path">The path.</param>
|
||||
void TemporarilyIgnore(string path);
|
||||
|
||||
/// <summary>
|
||||
/// Removes the temp ignore.
|
||||
/// </summary>
|
||||
/// <param name="path">The path.</param>
|
||||
void RemoveTempIgnore(string path);
|
||||
|
||||
/// <summary>
|
||||
/// Starts this instance.
|
||||
/// </summary>
|
||||
void Start();
|
||||
|
||||
/// <summary>
|
||||
/// Stops this instance.
|
||||
/// </summary>
|
||||
void Stop();
|
||||
}
|
||||
}
|
||||
36
MediaBrowser.Controller/Library/ILibraryMonitor.cs
Normal file
36
MediaBrowser.Controller/Library/ILibraryMonitor.cs
Normal file
@@ -0,0 +1,36 @@
|
||||
using System;
|
||||
|
||||
namespace MediaBrowser.Controller.Library
|
||||
{
|
||||
public interface ILibraryMonitor : IDisposable
|
||||
{
|
||||
/// <summary>
|
||||
/// Starts this instance.
|
||||
/// </summary>
|
||||
void Start();
|
||||
|
||||
/// <summary>
|
||||
/// Stops this instance.
|
||||
/// </summary>
|
||||
void Stop();
|
||||
|
||||
/// <summary>
|
||||
/// Reports the file system change beginning.
|
||||
/// </summary>
|
||||
/// <param name="path">The path.</param>
|
||||
void ReportFileSystemChangeBeginning(string path);
|
||||
|
||||
/// <summary>
|
||||
/// Reports the file system change complete.
|
||||
/// </summary>
|
||||
/// <param name="path">The path.</param>
|
||||
/// <param name="refreshPath">if set to <c>true</c> [refresh path].</param>
|
||||
void ReportFileSystemChangeComplete(string path, bool refreshPath);
|
||||
|
||||
/// <summary>
|
||||
/// Reports the file system changed.
|
||||
/// </summary>
|
||||
/// <param name="path">The path.</param>
|
||||
void ReportFileSystemChanged(string path);
|
||||
}
|
||||
}
|
||||
@@ -182,7 +182,7 @@
|
||||
<Compile Include="Entities\Video.cs" />
|
||||
<Compile Include="Entities\CollectionFolder.cs" />
|
||||
<Compile Include="Entities\Year.cs" />
|
||||
<Compile Include="IO\IDirectoryWatchers.cs" />
|
||||
<Compile Include="Library\ILibraryMonitor.cs" />
|
||||
<Compile Include="IServerApplicationHost.cs" />
|
||||
<Compile Include="IServerApplicationPaths.cs" />
|
||||
<Compile Include="Library\SearchHintInfo.cs" />
|
||||
|
||||
Reference in New Issue
Block a user