/src/LinFu.IoC.Common/LifecycleType.cs
http://github.com/philiplaureano/LinFu · C# · 28 lines · 9 code · 2 blank · 17 comment · 0 complexity · 70002b0c480b60d3b4a08f162a02ca93 MD5 · raw file
- namespace LinFu.IoC.Configuration
- {
- /// <summary>
- /// An enumeration that denotes the instance behavior
- /// of a particular object reference.
- /// </summary>
- public enum LifecycleType
- {
- /// <summary>
- /// This means that a new object instance
- /// will be created on each call.
- /// </summary>
- OncePerRequest = 0,
- /// <summary>
- /// This means that a new object instance
- /// will be created only once per thread.
- /// </summary>
- OncePerThread = 1,
- /// <summary>
- /// This means that only a single object instance
- /// will ever be created in spite of the number of
- /// subsequent requests for a new object instance.
- /// </summary>
- Singleton = 2
- }
- }