WindsorContainer
public class WindsorContainer : IWindsorContainer, IServiceProviderEx, IServiceProvider, IDisposable
Implementation of IWindsorContainer
which delegates to IKernel implementation.
Returns the inner instance of the MicroKernel
Gets the container's name
Gets or sets the parent container if this instance
is a sub container.
public WindsorContainer()
Constructs a container without any external
configuration reference
Constructs a container using the specified
IConfigurationStore implementation.
Constructs a container using the specified
IConfigurationInterpreter implementation.
Initializes a new instance of the WindsorContainer class.
Constructs a container using the specified IKernel
implementation. Rarely used.
Constructs a container using the specified IKernel
implementation. Rarely used.
Constructs with a given IProxyFactory.
Constructs a container assigning a parent container
before starting the dependency resolution.
public WindsorContainer(string name, IWindsorContainer parent, IConfigurationInterpreter interpreter)
Initializes a new instance of the WindsorContainer class.
Registers a subcontainer. The components exposed
by this container will be accessible from subcontainers.
public IWindsorContainer AddComponentLifeStyle(string key, Type serviceType, Type classType, LifestyleType lifestyle)
public virtual IWindsorContainer AddComponentWithProperties(string key, Type classType, IDictionary extendedProperties)
public virtual IWindsorContainer AddComponentWithProperties(string key, Type serviceType, Type classType, IDictionary extendedProperties)
Registers a facility within the kernel.
Creates and adds an IFacility facility to the container.
Creates and adds an IFacility facility to the container.
Creates and adds an IFacility facility to the container.
Creates and adds an IFacility facility to the container.
Creates and adds an IFacility facility to the container.
Creates and adds an IFacility facility to the container.
Executes Dispose on underlying IKernel
Gets a child container instance by name.
Gets the service object of the specified type.
Gets the service object of the specified type.
Installs the components provided by the IWindsorInstallers
with the IWindsorContainer.
The component installers.The container.
Registers the components described by the ComponentRegistration<T>s
with the IWindsorContainer.
The component registrations.The container.
Releases a component instance
Removes (unregisters) a subcontainer. The components exposed by this container
will no longer be accessible to the child container.
Returns a component instance by the service
Returns a component instance by the service
Returns a component instance by the key
Returns a component instance by the key
Returns a component instance by the service
Returns a component instance by the key
Returns a component instance by the key
Returns a component instance by the key
Returns a component instance by the service
Returns a component instance by the service
Returns a component instance by the key
Returns a component instance by the key
Returns a component instance by the service
Returns a component instance by the key
Resolve all valid components that match this type.
Resolve all valid components that match this type.
The service typeArguments to resolve the service
Resolve all valid components that match this type.
The service typeArguments to resolve the service