<PackageReference Include="Castle.Windsor" Version="3.0.0.2001" />

IWindsorContainer

public interface IWindsorContainer : IDisposable
The IWindsorContainer interface exposes all the functionality the Windsor implements.
object this[string key] { get; }

object this[Type service] { get; }

IKernel Kernel { get; }

Returns the inner instance of the MicroKernel

string Name { get; }

Gets the container's name

IWindsorContainer Parent { get; set; }

Gets or sets the parent container if this instance is a sub container.

void AddChildContainer(IWindsorContainer childContainer)

Registers a subcontainer. The components exposed by this container will be accessible from subcontainers.

IWindsorContainer AddComponent(string key, Type classType)

IWindsorContainer AddComponent(string key, Type serviceType, Type classType)

IWindsorContainer AddComponent<I, T>(string key)

IWindsorContainer AddComponentLifeStyle(string key, Type classType, LifestyleType lifestyle)

IWindsorContainer AddComponentLifeStyle(string key, Type serviceType, Type classType, LifestyleType lifestyle)

IWindsorContainer AddComponentProperties<I, T>(string key, IDictionary extendedProperties)

IWindsorContainer AddComponentWithProperties(string key, Type classType, IDictionary extendedProperties)

IWindsorContainer AddComponentWithProperties(string key, Type serviceType, Type classType, IDictionary extendedProperties)

IWindsorContainer AddComponentWithProperties<T>(string key, IDictionary extendedProperties)

Registers a facility within the container.

IWindsorContainer AddFacility<TFacility>() where TFacility : IFacility

Creates and adds an IFacility facility to the container.

IWindsorContainer AddFacility<TFacility>(Action<TFacility> onCreate) where TFacility : IFacility

Creates and adds an IFacility facility to the container.

IWindsorContainer AddFacility(string idInConfiguration, IFacility facility)

Registers a facility within the container.

IWindsorContainer AddFacility<TFacility>(string idInConfiguration) where TFacility : IFacility

Creates and adds an IFacility facility to the container.

IWindsorContainer AddFacility<TFacility>(string idInConfiguration, Action<TFacility> configureFacility) where TFacility : IFacility

Creates and adds an IFacility facility to the container.

Gets a child container instance by name.

Runs the installers so that they can register components in the container. For details see the documentation at http://j.mp/WindsorInstall

Registers the components with the IWindsorContainer. 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) FromThisAssembly. Let the Intellisense drive you through the fluent API past those entry points. For details see the documentation at http://j.mp/WindsorApi

void Release(object instance)

Releases a component instance

Remove a child container

object Resolve(string key, Type service)

Returns a component instance by the key

object Resolve(Type service)

Returns a component instance by the service

object Resolve(Type service, IDictionary arguments)

Returns a component instance by the service

object Resolve(Type service, object argumentsAsAnonymousType)

Returns a component instance by the service

T Resolve<T>()

Returns a component instance by the service

T Resolve<T>(IDictionary arguments)

Returns a component instance by the service

T Resolve<T>(object argumentsAsAnonymousType)

Returns a component instance by the service

T Resolve<T>(string key)

Returns a component instance by the key

T Resolve<T>(string key, IDictionary arguments)

Returns a component instance by the key

T Resolve<T>(string key, object argumentsAsAnonymousType)

Returns a component instance by the key

object Resolve(string key, Type service, IDictionary arguments)

Returns a component instance by the key

object Resolve(string key, Type service, object argumentsAsAnonymousType)

Returns a component instance by the key

object Resolve(string key, IDictionary arguments)

Returns a component instance by the key

object Resolve(string key, object argumentsAsAnonymousType)

Returns a component instance by the key

T[] ResolveAll<T>()

Resolve all valid components that match this type.

Resolve all valid components that match this service the service to match

Array ResolveAll(Type service, IDictionary arguments)

Resolve all valid components that match this service the service to matchArguments to resolve the service

Array ResolveAll(Type service, object argumentsAsAnonymousType)

Resolve all valid components that match this service the service to matchArguments to resolve the service

T[] ResolveAll<T>(IDictionary arguments)

Resolve all valid components that match this type. The service typeArguments to resolve the service

T[] ResolveAll<T>(object argumentsAsAnonymousType)

Resolve all valid components that match this type. The service typeArguments to resolve the service