DefaultKernel
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
public void AddComponent(string key, Type classType, LifestyleType lifestyle, bool overwriteLifestyle)
public void AddComponent(string key, Type serviceType, Type classType, LifestyleType lifestyle, bool overwriteLifestyle)
public virtual void AddComponentWithExtendedProperties(string key, Type classType, IDictionary extendedProperties)
public virtual void AddComponentWithExtendedProperties(string key, Type serviceType, Type classType, IDictionary extendedProperties)
protected CreationContext CreateCreationContext(IHandler handler, Type requestedType, IDictionary 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.
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. For details see the documentation at http://j.mp/WindsorApi
Releases a component instance. This allows the kernel to execute the proper decommission lifecycles on the component instance.
Returns the component instance by the component key
using dynamic arguments
Returns the component instance by the component key
using dynamic arguments
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 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 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 all the valid component instances by
the service type
Returns component instances that implement TService
Returns component instances that implement TService
Returns component instances that implement TService
protected object ResolveComponent(IHandler handler, Type service, IDictionary additionalArguments, IReleasePolicy policy)