AbstractHandler
public abstract class AbstractHandler : MarshalByRefObject, IHandler, ISubDependencyResolver, IExposeDependencyInfo, IDisposable
Implements the basis of
IHandler
Gets the component model.
Gets the handler state.
Constructs and initializes the handler
Invoked by
InitDependencies
in order to check if a dependency can be satisfied.
If not, the handler is set to a 'waiting dependency' state.
public virtual bool CanResolve(CreationContext context, ISubDependencyResolver contextHandlerResolver, ComponentModel model, DependencyModel dependency)
Invoked by the kernel
when one of registered dependencies were satisfied by
new components registered.
Checks if the handler is able to, at very least, satisfy
the dependencies for the constructor with less parameters
Saves the kernel instance, subscribes to
AddedAsChildKernel
event,
creates the lifestyle manager instance and computes
the handler state.
Invoked when the container receives a parent container reference.
disposes the component instance (or recycle it).
Should be implemented by derived classes:
disposes the component instance (or recycle it)
Returns an instance of the component this handler
is responsible for
Returns an instance of the component this handler
is responsible for
public virtual object Resolve(CreationContext context, ISubDependencyResolver contextHandlerResolver, ComponentModel model, DependencyModel dependency)