DefaultKernel
public class DefaultKernel : MarshalByRefObject, IKernel, IKernelEvents, IDisposable, IKernelInternal
Default implementation of IKernel. This implementation is complete and also support a kernel hierarchy (sub containers).
Graph of components and interactions.
public DefaultKernel()
Constructs a DefaultKernel with no component proxy support.
Constructs a DefaultKernel with the specified implementation of IProxyFactory and IDependencyResolver
Constructs a DefaultKernel with the specified implementation of IProxyFactory
protected CreationContext CreateCreationContext(IHandler handler, Type requestedType, Arguments additionalArguments, CreationContext parent, IReleasePolicy policy)
public virtual ILifestyleManager CreateLifestyleManager(ComponentModel model, IComponentActivator activator)
Creates an implementation of ILifestyleManager based on LifestyleType and invokes Init to initialize the newly created manager.
Starts the process of component disposal.
Return handlers for components that implements the specified service. The check is made using IsAssignableFrom
Returns the facilities registered on the kernel.
Return handlers for components that implements the specified service.
Returns all handlers for all components
protected virtual void RaiseDependencyResolving(ComponentModel client, DependencyModel model, object dependency)
Registers the components with the IKernel. The instances of IRegistration are produced by fluent registration API. Most common entry points are
For<T> method to register a single type or (recommended in most cases) FromAssembly. Let the Intellisense drive you through the
fluent
API past those entry points.
Releases a component instance. This allows the kernel to execute the proper decommission lifecycles on the component instance.
Returns a component instance by the key
Returns a component instance by the key
Returns the component instance by the service type
using dynamic arguments
Returns the component instance by the component key
Returns a component instance by the key
Returns a component instance by the key
Returns the component instance by the service type
Returns the component instance by the service type
using dynamic arguments
Returns all the valid component instances by
the service type
Returns all the valid component instances by
the service type
Returns component instances that implement TService
Returns component instances that implement TService
protected object ResolveComponent(IHandler handler, Type service, Arguments additionalArguments, IReleasePolicy policy)