aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.ServerApplication/Native/PowerManagement.cs
blob: 0bd3db1daef6af49361dfce27547bc0ac7e468c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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);
        }
    }
}