coreframework/Core-Framework — Issue #8: It'd be better to register services with Singleton LifeStyle in IoC container
Author: karpenkov
Created: 2011-12-30 07:18:36+00:00
State: open

Hi,

Currently all services are registered with Transient LifeStyle in IoC container:

````csharp
public void Install(IWindsorContainer container, IConfigurationStore store)
{
....
container.Register(Component.For().ImplementedBy().LifeStyle.Transient);
container.Register(Component.For().ImplementedBy().LifeStyle.Transient);
container.Register(Component.For().ImplementedBy().LifeStyle.Transient);
....
}
````

This may cause some performance issues and it would be better to register them as Singletons.