Enumeration used to mark the component's lifestyle.

Namespace: Castle.Core
Assembly:  Castle.Core (in Castle.Core.dll)
Version: 1.0.3.0

Syntax

C#
public enum LifestyleType

Members

Member nameDescription
Undefined
No lifestyle specified.
Singleton
Singleton components are instantiated once, and shared between all clients.
Thread
Thread components have a unique instance per thread.
Transient
Transient components are created on demand.
Pooled
Optimization of transient components that keeps instance in a pool instead of always creating them.
Custom
Any other logic to create/release components.
PerWebRequest
PerWebRequest components are created once per Http Request

See Also

Castle.Core Namespace