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);
|
2015-06-26 16:54:20 -04:00
|
|
|
|
|
|
|
|
|
container.Register(
|
|
|
|
|
Component.For<IThemeService>()
|
|
|
|
|
.ImplementedBy<ThemeService>()
|
|
|
|
|
.LifeStyle.Singleton);
|
2015-06-26 12:42:20 -04:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|