diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2016-11-08 23:58:58 -0500 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2016-11-08 23:58:58 -0500 |
| commit | 24532f3e2d7de2542b664383c5e0bc0cce61d7fc (patch) | |
| tree | be7f3db9c582a7ce2810879ca8e1351cb4038bfb /MediaBrowser.ServerApplication/Native/PowerManagement.cs | |
| parent | 15ebff2b3a738855d6c35fafc37d40a72293eef8 (diff) | |
update power management
Diffstat (limited to 'MediaBrowser.ServerApplication/Native/PowerManagement.cs')
| -rw-r--r-- | MediaBrowser.ServerApplication/Native/PowerManagement.cs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/MediaBrowser.ServerApplication/Native/PowerManagement.cs b/MediaBrowser.ServerApplication/Native/PowerManagement.cs new file mode 100644 index 000000000..0bd3db1da --- /dev/null +++ b/MediaBrowser.ServerApplication/Native/PowerManagement.cs @@ -0,0 +1,17 @@ +using MediaBrowser.Model.System; + +namespace MediaBrowser.ServerApplication.Native +{ + public class PowerManagement : IPowerManagement + { + public void PreventSystemStandby() + { + MainStartup.Invoke(Standby.PreventSleep); + } + + public void AllowSystemStandby() + { + MainStartup.Invoke(Standby.AllowSleep); + } + } +} |
