mirror of
				https://github.com/jellyfin/jellyfin.git
				synced 2025-11-03 19:17:24 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			18 lines
		
	
	
		
			384 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			384 B
		
	
	
	
		
			C#
		
	
	
	
	
	
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);
 | 
						|
        }
 | 
						|
    }
 | 
						|
}
 |