mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-16 02:18:54 -07:00
41 lines
869 B
C#
41 lines
869 B
C#
using System;
|
|
using MediaBrowser.Server.Startup.Common;
|
|
|
|
namespace MediaBrowser.Server.Mac
|
|
{
|
|
/// <summary>
|
|
/// Class NativeApp
|
|
/// </summary>
|
|
public class NativeApp : BaseMonoApp
|
|
{
|
|
/// <summary>
|
|
/// Shutdowns this instance.
|
|
/// </summary>
|
|
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(StartupOptions options)
|
|
{
|
|
MainClass.Restart();
|
|
}
|
|
}
|
|
}
|
|
|