diff options
Diffstat (limited to 'win/CS/HandBrakeWPF/Startup/CastleBootstrapper.cs')
-rw-r--r-- | win/CS/HandBrakeWPF/Startup/CastleBootstrapper.cs | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/win/CS/HandBrakeWPF/Startup/CastleBootstrapper.cs b/win/CS/HandBrakeWPF/Startup/CastleBootstrapper.cs index 695e0c7c1..13e5a896e 100644 --- a/win/CS/HandBrakeWPF/Startup/CastleBootstrapper.cs +++ b/win/CS/HandBrakeWPF/Startup/CastleBootstrapper.cs @@ -7,6 +7,9 @@ // </summary>
// --------------------------------------------------------------------------------------------------------------------
+using HandBrakeWPF.Services;
+using HandBrakeWPF.Services.Interfaces;
+
namespace HandBrakeWPF.Startup
{
using System;
@@ -22,8 +25,8 @@ namespace HandBrakeWPF.Startup using HandBrake.ApplicationServices;
- using HandBrakeWPF.ViewModels;
- using HandBrakeWPF.ViewModels.Interfaces;
+ using ViewModels;
+ using ViewModels.Interfaces;
/// <summary>
/// The Castle Bootstrapper
@@ -49,7 +52,15 @@ namespace HandBrakeWPF.Startup this.windsorContainer.Install(windsorContainer.ResolveAll<IWindsorInstaller>());
// Shell
+ this.windsorContainer.Register(Component.For<IErrorService>().ImplementedBy<ErrorService>().LifeStyle.Is(LifestyleType.Singleton));
+ this.windsorContainer.Register(Component.For<IErrorViewModel>().ImplementedBy<ErrorViewModel>().LifeStyle.Is(LifestyleType.Singleton));
this.windsorContainer.Register(Component.For<IMainViewModel>().ImplementedBy<MainViewModel>().LifeStyle.Is(LifestyleType.Singleton));
+ this.windsorContainer.Register(Component.For<IQueueViewModel>().ImplementedBy<QueueViewModel>().LifeStyle.Is(LifestyleType.Singleton));
+ this.windsorContainer.Register(Component.For<IAddPresetViewModel>().ImplementedBy<AddPresetViewModel>().LifeStyle.Is(LifestyleType.Singleton));
+ this.windsorContainer.Register(Component.For<IPreviewViewModel>().ImplementedBy<PreviewViewModel>().LifeStyle.Is(LifestyleType.Singleton));
+ this.windsorContainer.Register(Component.For<ILogViewModel>().ImplementedBy<LogViewModel>().LifeStyle.Is(LifestyleType.Singleton));
+ this.windsorContainer.Register(Component.For<IAboutViewModel>().ImplementedBy<AboutViewModel>().LifeStyle.Is(LifestyleType.Singleton));
+ this.windsorContainer.Register(Component.For<IOptionsViewModel>().ImplementedBy<OptionsViewModel>().LifeStyle.Is(LifestyleType.Singleton));
}
/// <summary>
|