aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Mac/Native/BaseMonoApp.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2016-02-14 16:15:16 -0500
committerLuke Pulverenti <luke.pulverenti@gmail.com>2016-02-14 16:15:16 -0500
commit9f538bd6f311af9fcbafd0ff90d7afdb59326a81 (patch)
treef5d59cd6129a31c0f78ecd7050aa38f5d2cdadad /MediaBrowser.Server.Mac/Native/BaseMonoApp.cs
parent12a868ed28744722a64cfa8856bec0d6db2f4fa6 (diff)
update mac project
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 ();
+ }
+ }
}
}