You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
jellyfin/MediaBrowser.ServerApplication/Native/PowerManagement.cs

18 lines
384 B

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);
}
}
}