From fd7f420af2a2983bc1982ab784b367b8e7604735 Mon Sep 17 00:00:00 2001 From: Bond_009 Date: Fri, 25 Jan 2019 22:41:43 +0100 Subject: Remove remnants of system events --- .../EntryPoints/SystemEvents.cs | 34 ---------------------- 1 file changed, 34 deletions(-) delete mode 100644 Emby.Server.Implementations/EntryPoints/SystemEvents.cs (limited to 'Emby.Server.Implementations/EntryPoints/SystemEvents.cs') 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; - } - } -} -- cgit v1.2.3