Class PerResolveLifetimeManager
This is a custom lifetime manager that acts like TransientLifetimeManager, but also provides a signal to the default build plan, marking the type so that instances are reused across the build up object graph.
public class PerResolveLifetimeManager : LifetimeManager, IInstanceLifetimeManager, IFactoryLifetimeManager, ITypeLifetimeManager
- Inheritance
-
PerResolveLifetimeManager
- Implements
- Inherited Members
- Extension Methods
Fields
value
protected object value
Field Value
Methods
GetValue(ILifetimeContainer)
Retrieves a value from the backing store associated with this Lifetime policy.
public override object GetValue(ILifetimeContainer container = null)
Parameters
container
ILifetimeContainerThe container this lifetime is associated with
Returns
- object
the object desired, or null if no such object is currently stored.
OnCreateLifetimeManager()
Implementation of CreateLifetimePolicy() policy.
protected override LifetimeManager OnCreateLifetimeManager()
Returns
- LifetimeManager
A new instance of the same lifetime manager of appropriate type
ToString()
This method provides human readable representation of the lifetime
public override string ToString()
Returns
- string
Name of the lifetime