2012-08-10 13:18:13 +06:00
|
|
|
namespace Umbraco.Core.ObjectResolution
|
2012-08-01 09:49:10 +06:00
|
|
|
{
|
2013-01-16 13:10:34 -01:00
|
|
|
/// <summary>
|
|
|
|
|
/// Specifies the lifetime scope of resolved objects.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public enum ObjectLifetimeScope
|
2012-08-01 09:49:10 +06:00
|
|
|
{
|
2013-01-16 13:10:34 -01:00
|
|
|
/// <summary>
|
|
|
|
|
/// A per-request object instance is created.
|
|
|
|
|
/// </summary>
|
2012-08-01 09:49:10 +06:00
|
|
|
HttpRequest,
|
2013-01-16 13:10:34 -01:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// A single application-wide object instance is created.
|
|
|
|
|
/// </summary>
|
2012-08-01 09:49:10 +06:00
|
|
|
Application,
|
2013-01-16 13:10:34 -01:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// A new object instance is created each time one is requested.
|
|
|
|
|
/// </summary>
|
2012-08-01 09:49:10 +06:00
|
|
|
Transient
|
|
|
|
|
}
|
|
|
|
|
}
|