update mac project

This commit is contained in:
Luke
2016-02-02 15:03:16 -05:00
parent e6b31ac6f4
commit 746066c346
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 ();
}
}
}
}