summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrake.ApplicationServices/ServicesWindsorInstaller.cs
blob: a250aa2fab4077e589226581a140d6cad8d4ebea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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
    }
}