using System.Threading.Tasks;
using MediaBrowser.Controller.Library;
using MediaBrowser.Controller.Plugins;
namespace Emby.Server.Implementations.IO
{
///
/// which is responsible for starting the library monitor.
///
public sealed class LibraryMonitorStartup : IServerEntryPoint
{
private readonly ILibraryMonitor _monitor;
///
/// Initializes a new instance of the class.
///
/// The library monitor.
public LibraryMonitorStartup(ILibraryMonitor monitor)
{
_monitor = monitor;
}
///
public Task RunAsync()
{
_monitor.Start();
return Task.CompletedTask;
}
///
public void Dispose()
{
}
}
}