diff options
| author | LukePulverenti <luke.pulverenti@gmail.com> | 2013-03-03 02:27:40 -0500 |
|---|---|---|
| committer | LukePulverenti <luke.pulverenti@gmail.com> | 2013-03-03 02:27:40 -0500 |
| commit | 7b0b5a35382d0b43f298d7ef015d6fd3031a8c72 (patch) | |
| tree | 9ffb770fe05b7d51995be8fb1dbdae4eaec01e26 /MediaBrowser.ServerApplication | |
| parent | 7665b1563d6459aabe9ceea7cecc192d487c1686 (diff) | |
created an init method on base app host
Diffstat (limited to 'MediaBrowser.ServerApplication')
| -rw-r--r-- | MediaBrowser.ServerApplication/App.xaml.cs | 1 | ||||
| -rw-r--r-- | MediaBrowser.ServerApplication/ApplicationHost.cs | 10 |
2 files changed, 11 insertions, 0 deletions
diff --git a/MediaBrowser.ServerApplication/App.xaml.cs b/MediaBrowser.ServerApplication/App.xaml.cs index 95ece67e6c..d79b2ff437 100644 --- a/MediaBrowser.ServerApplication/App.xaml.cs +++ b/MediaBrowser.ServerApplication/App.xaml.cs @@ -165,6 +165,7 @@ namespace MediaBrowser.ServerApplication protected async void LoadKernel() { CompositionRoot = new ApplicationHost(); + await CompositionRoot.Init(); Logger = CompositionRoot.Logger; Kernel = CompositionRoot.Kernel; diff --git a/MediaBrowser.ServerApplication/ApplicationHost.cs b/MediaBrowser.ServerApplication/ApplicationHost.cs index d70d179a6b..668887a56f 100644 --- a/MediaBrowser.ServerApplication/ApplicationHost.cs +++ b/MediaBrowser.ServerApplication/ApplicationHost.cs @@ -78,6 +78,16 @@ namespace MediaBrowser.ServerApplication public ApplicationHost() : base() { + } + + /// <summary> + /// Inits this instance. + /// </summary> + /// <returns>Task.</returns> + public override async Task Init() + { + await base.Init().ConfigureAwait(false); + Kernel = new Kernel(this, ServerApplicationPaths, _xmlSerializer, Logger); var networkManager = new NetworkManager(); |
