# HG changeset patch # User adminsh@apollo # Date 1332278520 0 # Node ID 81f9b72a44ce2c64d523a8054062a4eaad2b649a # Parent a8b50a0875444edc1315a63885b800c11a892fee Tidy up diff -r a8b50a087544 -r 81f9b72a44ce MetroWpf/MetroWpf.sln.DotSettings.user --- a/MetroWpf/MetroWpf.sln.DotSettings.user Tue Mar 20 20:18:35 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,2 +0,0 @@ - - False \ No newline at end of file diff -r a8b50a087544 -r 81f9b72a44ce MetroWpf/MetroWpf/IoCModule.cs --- a/MetroWpf/MetroWpf/IoCModule.cs Tue Mar 20 20:18:35 2012 +0000 +++ b/MetroWpf/MetroWpf/IoCModule.cs Tue Mar 20 21:22:00 2012 +0000 @@ -10,6 +10,7 @@ using MetroWpf.UI.Login; using MetroWpf.UI.Settings; using MetroWpf.UI.Shell; +using Microsoft.Practices.ServiceLocation; using Ninject.Modules; using Stocks.Common; using Stocks.Service; @@ -39,6 +40,10 @@ Bind().To(); Bind().To(); + + // force loading of ctor whilst in async code + ServiceLocator.Current.GetInstance(); + Bind().ToSelf(); Bind().ToSelf();