diff options
| author | Andrew Rabert <6550543+nvllsvm@users.noreply.github.com> | 2019-01-26 14:13:25 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-01-26 14:13:25 -0500 |
| commit | b673054c8d6cfc95faece1af5bd62006b3c34f1d (patch) | |
| tree | 91a3e4a73237892bbffeeaa9c1220ae4c9790a5a /Emby.Server.Implementations/EntryPoints/SystemEvents.cs | |
| parent | e051ca6ff6d6dd216bb307c316cf106d4409f1b0 (diff) | |
| parent | fd7f420af2a2983bc1982ab784b367b8e7604735 (diff) | |
Merge pull request #711 from Bond-009/sysevent
Remove remnants of system events
Diffstat (limited to 'Emby.Server.Implementations/EntryPoints/SystemEvents.cs')
| -rw-r--r-- | Emby.Server.Implementations/EntryPoints/SystemEvents.cs | 34 |
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; - } - } -} |
