aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.ServerApplication/MainWindow.xaml.cs
diff options
context:
space:
mode:
authorLukePulverenti Luke Pulverenti luke pulverenti <LukePulverenti Luke Pulverenti luke.pulverenti@gmail.com>2012-08-18 15:38:27 -0400
committerLukePulverenti Luke Pulverenti luke pulverenti <LukePulverenti Luke Pulverenti luke.pulverenti@gmail.com>2012-08-18 15:38:27 -0400
commita508a997d9e7605c40f4442e367b9dd74e54f5e3 (patch)
tree98b7d64d60532402e938c75996dee85ce05dff6a /MediaBrowser.ServerApplication/MainWindow.xaml.cs
parenta201eb060b7da8d95892d5cae3d70a24596e27c7 (diff)
Added a VirtualFolder entity, a resolver, and a CollectionType property.
Diffstat (limited to 'MediaBrowser.ServerApplication/MainWindow.xaml.cs')
-rw-r--r--MediaBrowser.ServerApplication/MainWindow.xaml.cs8
1 files changed, 8 insertions, 0 deletions
diff --git a/MediaBrowser.ServerApplication/MainWindow.xaml.cs b/MediaBrowser.ServerApplication/MainWindow.xaml.cs
index cbcf5186e..3cc29e7df 100644
--- a/MediaBrowser.ServerApplication/MainWindow.xaml.cs
+++ b/MediaBrowser.ServerApplication/MainWindow.xaml.cs
@@ -1,6 +1,7 @@
using System;
using System.Diagnostics;
using System.Windows;
+using MediaBrowser.Common.Logging;
using MediaBrowser.Controller;
using MediaBrowser.Model.Progress;
@@ -26,11 +27,18 @@ namespace MediaBrowser.ServerApplication
try
{
+ DateTime now = DateTime.Now;
+
new Kernel().Init(progress);
+
+ double seconds = (DateTime.Now - now).TotalSeconds;
+
+ Logger.LogInfo("Kernel.Init completed in {0} seconds.", seconds);
}
catch (Exception ex)
{
MessageBox.Show("There was an error launching Media Browser Server: " + ex.Message);
+ Close();
}
finally
{