aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.ServerApplication/App.xaml.cs
diff options
context:
space:
mode:
authorLukePulverenti <luke.pulverenti@gmail.com>2013-02-21 16:06:23 -0500
committerLukePulverenti <luke.pulverenti@gmail.com>2013-02-21 16:06:23 -0500
commit76f067f86778c29fbfb3716a72bc858cfdd73fd8 (patch)
tree3a61a3203860993a0742f1c4c169d874b5f85000 /MediaBrowser.ServerApplication/App.xaml.cs
parent2a2ee4adb379344b9eb7262ccc59778dc277e1ae (diff)
extracted more logging dependancies
Diffstat (limited to 'MediaBrowser.ServerApplication/App.xaml.cs')
-rw-r--r--MediaBrowser.ServerApplication/App.xaml.cs20
1 files changed, 17 insertions, 3 deletions
diff --git a/MediaBrowser.ServerApplication/App.xaml.cs b/MediaBrowser.ServerApplication/App.xaml.cs
index 768f5ed11c..4da5c39fe3 100644
--- a/MediaBrowser.ServerApplication/App.xaml.cs
+++ b/MediaBrowser.ServerApplication/App.xaml.cs
@@ -3,6 +3,7 @@ using MediaBrowser.Common.Logging;
using MediaBrowser.Common.UI;
using MediaBrowser.Controller;
using MediaBrowser.IsoMounter;
+using MediaBrowser.Model.Logging;
using MediaBrowser.Server.Uninstall;
using MediaBrowser.ServerApplication.Implementations;
using System;
@@ -24,7 +25,10 @@ namespace MediaBrowser.ServerApplication
[STAThread]
public static void Main()
{
- RunApplication<App>("MediaBrowserServer");
+ var application = new App(LogManager.GetLogger("App"));
+ application.InitializeComponent();
+
+ application.Run();
}
/// <summary>
@@ -40,6 +44,16 @@ namespace MediaBrowser.ServerApplication
}
/// <summary>
+ /// Initializes a new instance of the <see cref="App" /> class.
+ /// </summary>
+ /// <param name="logger">The logger.</param>
+ public App(ILogger logger)
+ : base(logger)
+ {
+
+ }
+
+ /// <summary>
/// Gets the name of the product.
/// </summary>
/// <value>The name of the product.</value>
@@ -170,7 +184,7 @@ namespace MediaBrowser.ServerApplication
/// <returns>IKernel.</returns>
protected override IKernel InstantiateKernel()
{
- return new Kernel(new PismoIsoManager(LogManager.GetLogger("PismoIsoManager")), new DotNetZipClient(), new BdInfoExaminer());
+ return new Kernel(new PismoIsoManager(Logger), new DotNetZipClient(), new BdInfoExaminer(), Logger);
}
/// <summary>
@@ -179,7 +193,7 @@ namespace MediaBrowser.ServerApplication
/// <returns>Window.</returns>
protected override Window InstantiateMainWindow()
{
- return new MainWindow(LogManager.GetLogger("MainWindow"));
+ return new MainWindow(Logger);
}
}
}