mirror of
				https://github.com/jellyfin/jellyfin.git
				synced 2025-11-03 19:17:24 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			36 lines
		
	
	
		
			954 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			36 lines
		
	
	
		
			954 B
		
	
	
	
		
			C#
		
	
	
	
	
	
using System.Threading.Tasks;
 | 
						|
using MediaBrowser.Controller.Library;
 | 
						|
using MediaBrowser.Controller.Plugins;
 | 
						|
 | 
						|
namespace Emby.Server.Implementations.IO
 | 
						|
{
 | 
						|
    /// <summary>
 | 
						|
    /// <see cref="IServerEntryPoint" /> which is responsible for starting the library monitor.
 | 
						|
    /// </summary>
 | 
						|
    public sealed class LibraryMonitorStartup : IServerEntryPoint
 | 
						|
    {
 | 
						|
        private readonly ILibraryMonitor _monitor;
 | 
						|
 | 
						|
        /// <summary>
 | 
						|
        /// Initializes a new instance of the <see cref="LibraryMonitorStartup"/> class.
 | 
						|
        /// </summary>
 | 
						|
        /// <param name="monitor">The library monitor.</param>
 | 
						|
        public LibraryMonitorStartup(ILibraryMonitor monitor)
 | 
						|
        {
 | 
						|
            _monitor = monitor;
 | 
						|
        }
 | 
						|
 | 
						|
        /// <inheritdoc />
 | 
						|
        public Task RunAsync()
 | 
						|
        {
 | 
						|
            _monitor.Start();
 | 
						|
            return Task.CompletedTask;
 | 
						|
        }
 | 
						|
 | 
						|
        /// <inheritdoc />
 | 
						|
        public void Dispose()
 | 
						|
        {
 | 
						|
        }
 | 
						|
    }
 | 
						|
}
 |