aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Mac/Native/NativeApp.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2015-05-23 18:01:13 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2015-05-23 18:01:13 -0400
commitfb48dd34870d5ef8d1d636d83af5132e26b99449 (patch)
tree9e7255544f2ada5494ac4c20b6bd54d72ad47038 /MediaBrowser.Server.Mac/Native/NativeApp.cs
parentd0c9273d679cfec73c10e6f863c5cf9012a3aa2f (diff)
support mono restarts
Diffstat (limited to 'MediaBrowser.Server.Mac/Native/NativeApp.cs')
-rw-r--r--MediaBrowser.Server.Mac/Native/NativeApp.cs22
1 files changed, 21 insertions, 1 deletions
diff --git a/MediaBrowser.Server.Mac/Native/NativeApp.cs b/MediaBrowser.Server.Mac/Native/NativeApp.cs
index f7c2dd4c9..4515be051 100644
--- a/MediaBrowser.Server.Mac/Native/NativeApp.cs
+++ b/MediaBrowser.Server.Mac/Native/NativeApp.cs
@@ -13,7 +13,27 @@ namespace MediaBrowser.Server.Mac
public override void Shutdown()
{
MainClass.Shutdown();
- }
+ }
+
+ /// <summary>
+ /// Determines whether this instance [can self restart].
+ /// </summary>
+ /// <value><c>true</c> if this instance can self restart; otherwise, <c>false</c>.</value>
+ public override bool CanSelfRestart
+ {
+ get
+ {
+ return true;
+ }
+ }
+
+ /// <summary>
+ /// Restarts this instance.
+ /// </summary>
+ public override void Restart()
+ {
+ MainClass.Restart();
+ }
}
}