using System.Collections.Generic; using System.Reflection; using Emby.Server.Implementations; using MediaBrowser.Common.Net; using MediaBrowser.Controller.Drawing; using MediaBrowser.Model.IO; using Microsoft.Extensions.Logging; namespace Jellyfin.Server { /// /// Implementation of the abstract class. /// public class CoreAppHost : ApplicationHost { /// /// Initializes a new instance of the class. /// /// The to be used by the . /// The to be used by the . /// The to be used by the . /// The to be used by the . /// The to be used by the . /// The to be used by the . public CoreAppHost( ServerApplicationPaths applicationPaths, ILoggerFactory loggerFactory, StartupOptions options, IFileSystem fileSystem, IImageEncoder imageEncoder, INetworkManager networkManager) : base( applicationPaths, loggerFactory, options, fileSystem, imageEncoder, networkManager) { } /// public override bool CanSelfRestart => StartupOptions.RestartPath != null; /// protected override void RestartInternal() => Program.Restart(); /// protected override IEnumerable GetAssembliesWithPartsInternal() { yield return typeof(CoreAppHost).Assembly; } /// protected override void ShutdownInternal() => Program.Shutdown(); } }