add ApplicationPath to app paths interface to hide implementation

This commit is contained in:
Luke Pulverenti
2013-12-04 09:52:38 -05:00
parent 40959a816f
commit 4e79eaf65e
13 changed files with 110 additions and 38 deletions

View File

@@ -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>