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);
|
2015-07-04 12:28:34 -04:00
|
|
|
|
|
|
|
|
|
container.Register(
|
|
|
|
|
Component.For<IMessageBoxService>()
|
|
|
|
|
.ImplementedBy<MessageBoxService>()
|
|
|
|
|
.LifeStyle.Singleton);
|
2015-07-02 12:57:43 -04:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|