mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-22 16:54:46 +03:00
add ApplicationPath to app paths interface to hide implementation
This commit is contained in:
@@ -36,7 +36,9 @@ namespace MediaBrowser.Server.Mono
|
||||
{
|
||||
Application.Init ();
|
||||
|
||||
var appPaths = CreateApplicationPaths();
|
||||
var applicationPath = Assembly.GetEntryAssembly ().Location;
|
||||
|
||||
var appPaths = CreateApplicationPaths(applicationPath);
|
||||
|
||||
var logManager = new NlogManager(appPaths.LogDirectoryPath, "server");
|
||||
logManager.ReloadLogger(LogSeverity.Info);
|
||||
@@ -65,9 +67,9 @@ namespace MediaBrowser.Server.Mono
|
||||
}
|
||||
}
|
||||
|
||||
private static ServerApplicationPaths CreateApplicationPaths()
|
||||
private static ServerApplicationPaths CreateApplicationPaths(string applicationPath)
|
||||
{
|
||||
return new ServerApplicationPaths();
|
||||
return new ServerApplicationPaths(applicationPath);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user