aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.UI/App.xaml.cs
diff options
context:
space:
mode:
Diffstat (limited to 'MediaBrowser.UI/App.xaml.cs')
-rw-r--r--MediaBrowser.UI/App.xaml.cs18
1 files changed, 16 insertions, 2 deletions
diff --git a/MediaBrowser.UI/App.xaml.cs b/MediaBrowser.UI/App.xaml.cs
index f2eaeb152..c4a99c1a8 100644
--- a/MediaBrowser.UI/App.xaml.cs
+++ b/MediaBrowser.UI/App.xaml.cs
@@ -7,6 +7,7 @@ using MediaBrowser.Common.UI;
using MediaBrowser.IsoMounter;
using MediaBrowser.Model.Configuration;
using MediaBrowser.Model.Dto;
+using MediaBrowser.Model.Logging;
using MediaBrowser.Model.Net;
using MediaBrowser.Model.Weather;
using MediaBrowser.UI.Controller;
@@ -235,16 +236,29 @@ namespace MediaBrowser.UI
[STAThread]
public static void Main()
{
- RunApplication<App>("MediaBrowserUI");
+ var application = new App(LogManager.GetLogger("App"));
+ application.InitializeComponent();
+
+ application.Run();
}
/// <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>
/// Instantiates the kernel.
/// </summary>
/// <returns>IKernel.</returns>
protected override IKernel InstantiateKernel()
{
- return new UIKernel(new PismoIsoManager(LogManager.GetLogger("PismoIsoManager")));
+ return new UIKernel(new PismoIsoManager(Logger), Logger);
}
/// <summary>