ILifestyleManager API Document
The ILifestyleManager implements a strategy for a given lifestyle, like singleton, perthread and transient.
Quick Note
The responsability of ILifestyleManager is only the management of lifestyle. It should rely on Castle.MicroKernel.IComponentActivator to obtain a new component instance
Methods
Release(Object instance)
Implementors should release the component instance based on the lifestyle semantic, for example, singleton components should not be released on a call for release, instead they should release them when disposed is invoked.
| Parameter | Description |
|---|---|
| instance |
Resolve(CreationContext context) : Object
Implementors should return the component instance based on the lifestyle semantic.
| Parameter | Description |
|---|---|
| context | Missing documentation |
Init(IComponentActivator componentActivator, IKernel kernel)
Initializes the ILifestyleManager with the Castle.MicroKernel.IComponentActivator
| Parameter | Description |
|---|---|
| componentActivator | |
| kernel |