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

47 lines
995 B
C#
Raw Normal View History

2014-11-25 21:27:55 -07:00
using System;
2015-06-07 12:13:12 -07:00
using MediaBrowser.Server.Startup.Common;
2016-05-23 11:05:03 -07:00
using MediaBrowser.Model.Logging;
2014-11-25 21:27:55 -07:00
namespace MediaBrowser.Server.Mac
{
/// <summary>
/// Class NativeApp
/// </summary>
public class NativeApp : BaseMonoApp
{
2016-05-23 11:05:03 -07:00
public NativeApp(ILogger logger)
: base(logger)
{
}
/// <summary>
2014-11-25 21:27:55 -07:00
/// Shutdowns this instance.
/// </summary>
public override void Shutdown()
{
MainClass.Shutdown();
2015-05-23 15:01:13 -07: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 12:13:12 -07:00
public override void Restart(StartupOptions options)
2015-05-23 15:01:13 -07:00
{
MainClass.Restart();
}
2014-11-25 21:27:55 -07:00
}
}