update mac project

This commit is contained in:
Luke Pulverenti
2016-02-14 16:15:16 -05:00
parent 12a868ed28
commit 9f538bd6f3
2 changed files with 221 additions and 81 deletions

View File

@@ -6,6 +6,7 @@ using System;
using System.Collections.Generic;
using System.Reflection;
using System.Text.RegularExpressions;
using MediaBrowser.Controller.Power;
namespace MediaBrowser.Server.Mac
{
@@ -110,6 +111,11 @@ namespace MediaBrowser.Server.Mac
return new NetworkManager(logger);
}
public IPowerManagement GetPowerManagement()
{
return new NullPowerManagement ();
}
private NativeEnvironment GetEnvironmentInfo()
{
var info = new NativeEnvironment
@@ -169,5 +175,13 @@ namespace MediaBrowser.Server.Mac
public string sysname = string.Empty;
public string machine = string.Empty;
}
private class NullPowerManagement : IPowerManagement
{
public void ScheduleWake(DateTime utcTime)
{
throw new NotImplementedException ();
}
}
}
}