aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Server/CoreAppHost.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Jellyfin.Server/CoreAppHost.cs')
-rw-r--r--Jellyfin.Server/CoreAppHost.cs20
1 files changed, 3 insertions, 17 deletions
diff --git a/Jellyfin.Server/CoreAppHost.cs b/Jellyfin.Server/CoreAppHost.cs
index 64e03f22e..6832fe743 100644
--- a/Jellyfin.Server/CoreAppHost.cs
+++ b/Jellyfin.Server/CoreAppHost.cs
@@ -16,36 +16,22 @@ namespace Jellyfin.Server
{
}
- public override bool CanSelfRestart
- {
- get
- {
- // A restart script must be provided
- return StartupOptions.ContainsOption("-restartpath");
- }
- }
+ public override bool CanSelfRestart => StartupOptions.ContainsOption("-restartpath");
protected override void RestartInternal() => Program.Restart();
protected override IEnumerable<Assembly> GetAssembliesWithPartsInternal()
- => new [] { typeof(CoreAppHost).Assembly };
+ => new[] { typeof(CoreAppHost).Assembly };
protected override void ShutdownInternal() => Program.Shutdown();
- protected override bool SupportsDualModeSockets
- {
- get
- {
- return true;
- }
- }
+ protected override bool SupportsDualModeSockets => true;
protected override IHttpListener CreateHttpListener()
=> new WebSocketSharpListener(
Logger,
Certificate,
StreamHelper,
- TextEncoding,
NetworkManager,
SocketFactory,
CryptographyProvider,