diff options
author | sr55 <[email protected]> | 2011-09-25 16:40:26 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2011-09-25 16:40:26 +0000 |
commit | 3a34f16a25e45e87e27cc107fd489eef1abc73f7 (patch) | |
tree | 8be7ce43aefe75ee8814bbca8f9cc064c2d777e6 /win/CS/HandBrakeWPF/Startup/CastleBootstrapper.cs | |
parent | ea437273cecf5bddcc7b8913bb4e8eef6b60d53b (diff) |
WinGui: Added implementation of IWindsorInstaller to the AppServices library and updated the installers to use wildcards instead of hard coded files.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4251 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrakeWPF/Startup/CastleBootstrapper.cs')
-rw-r--r-- | win/CS/HandBrakeWPF/Startup/CastleBootstrapper.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/win/CS/HandBrakeWPF/Startup/CastleBootstrapper.cs b/win/CS/HandBrakeWPF/Startup/CastleBootstrapper.cs index 22811d348..02710b161 100644 --- a/win/CS/HandBrakeWPF/Startup/CastleBootstrapper.cs +++ b/win/CS/HandBrakeWPF/Startup/CastleBootstrapper.cs @@ -11,6 +11,8 @@ using Castle.MicroKernel.Registration;
using Castle.Windsor;
+ using HandBrake.ApplicationServices;
+
using HandBrakeWPF.ViewModels;
using HandBrakeWPF.ViewModels.Interfaces;
@@ -33,6 +35,10 @@ this.windsorContainer.Register(Component.For<IWindowManager>().ImplementedBy<WindowManager>());
this.windsorContainer.Register(Component.For<IEventAggregator>().ImplementedBy<EventAggregator>());
+ // Initialise the ApplicationServices IWindsorInstaller
+ this.windsorContainer.Register(Component.For<IWindsorInstaller>().ImplementedBy<ServicesWindsorInstaller>());
+ this.windsorContainer.Install(windsorContainer.ResolveAll<IWindsorInstaller>());
+
// Shell
this.windsorContainer.Register(Component.For<IMainViewModel>().ImplementedBy<MainViewModel>().LifeStyle.Is(LifestyleType.Singleton));
}
|