Filtration/Filtration.ThemeEditor/WindsorInstallers/ServicesInstaller.cs

24 lines
750 B
C#
Raw Permalink Normal View History

2015-06-26 12:42:20 -04:00
using Castle.MicroKernel.Registration;
using Castle.MicroKernel.SubSystems.Configuration;
using Castle.Windsor;
using Filtration.ThemeEditor.Services;
namespace Filtration.ThemeEditor.WindsorInstallers
{
public class ServicesInstaller : IWindsorInstaller
{
public void Install(IWindsorContainer container, IConfigurationStore store)
{
container.Register(
Component.For<IThemePersistenceService>()
.ImplementedBy<ThemePersistenceService>()
.LifeStyle.Singleton);
container.Register(
Component.For<IThemeService>()
.ImplementedBy<ThemeService>()
.LifeStyle.Singleton);
2015-06-26 12:42:20 -04:00
}
}
}