jellyfin/MediaBrowser.Server.Mac/Native/NativeApp.cs

41 lines
869 B
C#
Raw Normal View History

2014-11-26 04:27:55 +00:00
using System;
2015-06-07 19:13:12 +00:00
using MediaBrowser.Server.Startup.Common;
2014-11-26 04:27:55 +00:00
namespace MediaBrowser.Server.Mac
{
/// <summary>
/// Class NativeApp
/// </summary>
public class NativeApp : BaseMonoApp
{
/// <summary>
/// Shutdowns this instance.
/// </summary>
public override void Shutdown()
{
MainClass.Shutdown();
2015-05-23 22:01:13 +00:00
}
/// <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>
2015-06-07 19:13:12 +00:00
public override void Restart(StartupOptions options)
2015-05-23 22:01:13 +00:00
{
MainClass.Restart();
}
2014-11-26 04:27:55 +00:00
}
}