using System; using MediaBrowser.Server.Startup.Common; using MediaBrowser.Model.Logging; namespace MediaBrowser.Server.Mac { /// /// Class NativeApp /// public class NativeApp : BaseMonoApp { public NativeApp(ILogger logger) : base(logger) { } /// /// Shutdowns this instance. /// public override void Shutdown() { MainClass.Shutdown(); } /// /// Determines whether this instance [can self restart]. /// /// true if this instance can self restart; otherwise, false. public override bool CanSelfRestart { get { return true; } } /// /// Restarts this instance. /// public override void Restart(StartupOptions options) { MainClass.Restart(); } } }