aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/EntryPoints/SystemEvents.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Emby.Server.Implementations/EntryPoints/SystemEvents.cs')
-rw-r--r--Emby.Server.Implementations/EntryPoints/SystemEvents.cs34
1 files changed, 0 insertions, 34 deletions
diff --git a/Emby.Server.Implementations/EntryPoints/SystemEvents.cs b/Emby.Server.Implementations/EntryPoints/SystemEvents.cs
deleted file mode 100644
index 72c8acd9f..000000000
--- a/Emby.Server.Implementations/EntryPoints/SystemEvents.cs
+++ /dev/null
@@ -1,34 +0,0 @@
-using System;
-using MediaBrowser.Controller;
-using MediaBrowser.Controller.Plugins;
-using MediaBrowser.Model.System;
-
-namespace Emby.Server.Implementations.EntryPoints
-{
- public class SystemEvents : IServerEntryPoint
- {
- private readonly ISystemEvents _systemEvents;
- private readonly IServerApplicationHost _appHost;
-
- public SystemEvents(ISystemEvents systemEvents, IServerApplicationHost appHost)
- {
- _systemEvents = systemEvents;
- _appHost = appHost;
- }
-
- public void Run()
- {
- _systemEvents.SystemShutdown += _systemEvents_SystemShutdown;
- }
-
- private void _systemEvents_SystemShutdown(object sender, EventArgs e)
- {
- _appHost.Shutdown();
- }
-
- public void Dispose()
- {
- _systemEvents.SystemShutdown -= _systemEvents_SystemShutdown;
- }
- }
-}