Initial refactoring to support CommandManager
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
using Castle.MicroKernel.Registration;
|
||||
using Castle.MicroKernel.SubSystems.Configuration;
|
||||
using Castle.Windsor;
|
||||
using Filtration.ObjectModel.Commands;
|
||||
|
||||
namespace Filtration.ObjectModel.WindsorInstallers
|
||||
{
|
||||
public class CommandsInstaller : IWindsorInstaller
|
||||
{
|
||||
public void Install(IWindsorContainer container, IConfigurationStore store)
|
||||
{
|
||||
|
||||
container.Register(Component
|
||||
.For<ICommandManager>()
|
||||
.Forward<ICommandManagerInternal>()
|
||||
.ImplementedBy<CommandManager>()
|
||||
.LifestyleTransient());
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
23
Filtration.ObjectModel/WindsorInstallers/ModelsInstaller.cs
Normal file
23
Filtration.ObjectModel/WindsorInstallers/ModelsInstaller.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using Castle.Facilities.TypedFactory;
|
||||
using Castle.MicroKernel.Registration;
|
||||
using Castle.MicroKernel.SubSystems.Configuration;
|
||||
using Castle.Windsor;
|
||||
using Filtration.ObjectModel.Factories;
|
||||
|
||||
namespace Filtration.ObjectModel.WindsorInstallers
|
||||
{
|
||||
public class ModelsInstaller : IWindsorInstaller
|
||||
{
|
||||
public void Install(IWindsorContainer container, IConfigurationStore store)
|
||||
{
|
||||
container.Register(Component
|
||||
.For<IItemFilterScript>()
|
||||
.ImplementedBy<ItemFilterScript>()
|
||||
.LifestyleTransient());
|
||||
|
||||
container.Register(Component
|
||||
.For<IItemFilterScriptFactory>()
|
||||
.AsFactory());
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user