Enum Lifestyle
The scope of the instance that provided by the IProvider
Namespace: IdleKit.IoC
Assembly: cs.temp.dll.dll
Syntax
public enum Lifestyle
Fields
Name | Description |
---|---|
Cached | Cached means that the instance is first created once and returned every time the dependency is inquired. |
Singleton | Singleton is the same as Cached except that it marks the scope of the contract to be singleton and hence remove all existing contract of the type. |
Transient | Transient means that a new instance is created every time the dependency is inquired. |