diff options
| author | Anthony Lavado <anthonylavado@me.com> | 2020-08-20 12:50:30 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-20 12:50:30 -0400 |
| commit | ac58d07e0e2cf5caa641803f25ad4ecfa997ec51 (patch) | |
| tree | 00067ebc5a246eb853ef319d073912424cdf3175 /Emby.Server.Implementations/IO/LibraryMonitorStartup.cs | |
| parent | 8cbefdd5614736df4ead5adadc2a95deb45aa326 (diff) | |
| parent | 6292a9e4e91fe98958fb8ab191453c7f713c1c92 (diff) | |
Merge pull request #3939 from Bond-009/warn24
Make MediaBrowser.MediaEncoding warnings free
Diffstat (limited to 'Emby.Server.Implementations/IO/LibraryMonitorStartup.cs')
| -rw-r--r-- | Emby.Server.Implementations/IO/LibraryMonitorStartup.cs | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/Emby.Server.Implementations/IO/LibraryMonitorStartup.cs b/Emby.Server.Implementations/IO/LibraryMonitorStartup.cs new file mode 100644 index 000000000..c51cf0545 --- /dev/null +++ b/Emby.Server.Implementations/IO/LibraryMonitorStartup.cs @@ -0,0 +1,35 @@ +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() + { + } + } +} |
