summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrake.ApplicationServices/ServicesWindsorInstaller.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2011-09-25 16:40:26 +0000
committersr55 <[email protected]>2011-09-25 16:40:26 +0000
commit3a34f16a25e45e87e27cc107fd489eef1abc73f7 (patch)
tree8be7ce43aefe75ee8814bbca8f9cc064c2d777e6 /win/CS/HandBrake.ApplicationServices/ServicesWindsorInstaller.cs
parentea437273cecf5bddcc7b8913bb4e8eef6b60d53b (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/HandBrake.ApplicationServices/ServicesWindsorInstaller.cs')
-rw-r--r--win/CS/HandBrake.ApplicationServices/ServicesWindsorInstaller.cs33
1 files changed, 33 insertions, 0 deletions
diff --git a/win/CS/HandBrake.ApplicationServices/ServicesWindsorInstaller.cs b/win/CS/HandBrake.ApplicationServices/ServicesWindsorInstaller.cs
new file mode 100644
index 000000000..a250aa2fa
--- /dev/null
+++ b/win/CS/HandBrake.ApplicationServices/ServicesWindsorInstaller.cs
@@ -0,0 +1,33 @@
+namespace HandBrake.ApplicationServices
+{
+ using Castle.MicroKernel.Registration;
+ using Castle.MicroKernel.SubSystems.Configuration;
+ using Castle.Windsor;
+
+ using HandBrake.ApplicationServices.Services;
+ using HandBrake.ApplicationServices.Services.Interfaces;
+
+ /// <summary>
+ /// An Implimentation of IWindsorInstaller for this library.
+ /// </summary>
+ public class ServicesWindsorInstaller : IWindsorInstaller
+ {
+ #region Implementation of IWindsorInstaller
+
+ /// <summary>
+ /// Performs the installation in the <see cref="T:Castle.Windsor.IWindsorContainer"/>.
+ /// </summary>
+ /// <param name="container">The container.</param><param name="store">The configuration store.</param>
+ public void Install(IWindsorContainer container, IConfigurationStore store)
+ {
+ container.Register(Component.For<IPresetService>().ImplementedBy<PresetService>());
+ container.Register(Component.For<IQueueManager>().ImplementedBy<QueueManager>());
+ container.Register(Component.For<IQueueProcessor>().ImplementedBy<QueueProcessor>());
+ container.Register(Component.For<IUserSettingService>().ImplementedBy<UserSettingService>());
+ container.Register(Component.For<IScan>().ImplementedBy<ScanService>());
+ container.Register(Component.For<IEncode>().ImplementedBy<Encode>());
+ }
+
+ #endregion
+ }
+}