mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-21 08:15:28 +03:00
Move Options to Jellyfin.Server and create interface file
Changes following review comments.
This commit is contained in:
@@ -43,6 +43,7 @@ using Emby.Server.Implementations.ScheduledTasks;
|
||||
using Emby.Server.Implementations.Security;
|
||||
using Emby.Server.Implementations.Serialization;
|
||||
using Emby.Server.Implementations.Session;
|
||||
using Emby.Server.Implementations.ParsedStartupOptions;
|
||||
using Emby.Server.Implementations.Threading;
|
||||
using Emby.Server.Implementations.TV;
|
||||
using Emby.Server.Implementations.Updates;
|
||||
@@ -141,7 +142,7 @@ namespace Emby.Server.Implementations
|
||||
return false;
|
||||
}
|
||||
|
||||
if (StartupOptions.Service)
|
||||
if (StartupOptions.IsService)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
@@ -343,7 +344,7 @@ namespace Emby.Server.Implementations
|
||||
protected IHttpResultFactory HttpResultFactory { get; private set; }
|
||||
protected IAuthService AuthService { get; private set; }
|
||||
|
||||
public StartupOptions StartupOptions { get; private set; }
|
||||
public IStartupOptions StartupOptions { get; private set; }
|
||||
|
||||
internal IImageEncoder ImageEncoder { get; private set; }
|
||||
|
||||
@@ -364,7 +365,7 @@ namespace Emby.Server.Implementations
|
||||
/// </summary>
|
||||
public ApplicationHost(ServerApplicationPaths applicationPaths,
|
||||
ILoggerFactory loggerFactory,
|
||||
StartupOptions options,
|
||||
IStartupOptions options,
|
||||
IFileSystem fileSystem,
|
||||
IEnvironmentInfo environmentInfo,
|
||||
IImageEncoder imageEncoder,
|
||||
|
||||
Reference in New Issue
Block a user