container.AddComponentLifeStyle(Lifestyle.Singleton);
container.AddComponentLifeStyle(Lifestyle.Transient);
container.AddComponentLifeStyleThese examples demonstrate how to use WindsorContainer's AddComponentLifeStyle method to specify the lifetime of a component. The package library for WindsorContainer is Castle.Windsor.(Lifestyle.Scoped);