jellyfin-server/MediaBrowser.ServerApplication/Native/PowerManagement.cs

18 lines
384 B
C#
Raw Normal View History

2016-11-09 04:58:58 +00:00
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);
}
}
}