Doc/DependencyInjection/LifeTime

DependencyLifetime Members

When registering dependencies with OpenRasta, the DependencyLifetime enumeration governs when implementation objects are created and how long they live.

DependencyLifetime.Singleton::

Only one of this type of object will ever be created and will last as long as the AppDomain.

DependencyLifetime.PerRequest::

One object will be created per request made to OpenRasta. It will be released at the end of the current request.

DependencyLifetime.Transient::

One object will be created every time it is requested in a constructor.