aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Mac/Native/BaseMonoApp.cs
diff options
context:
space:
mode:
Diffstat (limited to 'MediaBrowser.Server.Mac/Native/BaseMonoApp.cs')
-rw-r--r--MediaBrowser.Server.Mac/Native/BaseMonoApp.cs14
1 files changed, 14 insertions, 0 deletions
diff --git a/MediaBrowser.Server.Mac/Native/BaseMonoApp.cs b/MediaBrowser.Server.Mac/Native/BaseMonoApp.cs
index 9b8b0cd1b..2e5d2d0fc 100644
--- a/MediaBrowser.Server.Mac/Native/BaseMonoApp.cs
+++ b/MediaBrowser.Server.Mac/Native/BaseMonoApp.cs
@@ -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 ();
+ }
+ }
}
}