2014-11-26 04:27:55 +00:00
|
|
|
|
using System;
|
2015-06-07 19:13:12 +00:00
|
|
|
|
using MediaBrowser.Server.Startup.Common;
|
2016-05-23 18:05:03 +00:00
|
|
|
|
using MediaBrowser.Model.Logging;
|
2014-11-26 04:27:55 +00:00
|
|
|
|
|
|
|
|
|
namespace MediaBrowser.Server.Mac
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Class NativeApp
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class NativeApp : BaseMonoApp
|
|
|
|
|
{
|
2016-05-23 18:05:03 +00:00
|
|
|
|
public NativeApp(ILogger logger)
|
|
|
|
|
: base(logger)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2014-11-26 04:27:55 +00:00
|
|
|
|
/// 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
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|