Filtration/Filtration.Common/WindsorInstallers/ServicesInstaller.cs

24 lines
737 B
C#
Raw Permalink Normal View History

2015-07-02 12:57:43 -04:00
using Castle.MicroKernel.Registration;
using Castle.MicroKernel.SubSystems.Configuration;
using Castle.Windsor;
using Filtration.Common.Services;
namespace Filtration.Common.WindsorInstallers
{
public class ServicesInstaller :IWindsorInstaller
{
public void Install(IWindsorContainer container, IConfigurationStore store)
{
container.Register(
Component.For<IFileSystemService>()
.ImplementedBy<FileSystemService>()
.LifeStyle.Singleton);
container.Register(
Component.For<IMessageBoxService>()
.ImplementedBy<MessageBoxService>()
.LifeStyle.Singleton);
2015-07-02 12:57:43 -04:00
}
}
}