<PackageReference Include="castle.windsor" Version="2.5.2" />

IWindsorContainer

public interface IWindsorContainer : IServiceProviderEx, IServiceProvider, 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)

IWindsorContainer AddFacility(string key, IFacility facility)

Registers a facility within the container.

IWindsorContainer AddFacility<T>(string key) where T : IFacility

Creates and adds an IFacility facility to the container.

IWindsorContainer AddFacility<T>(string key, Action<T> onCreate) where T : IFacility

Creates and adds an IFacility facility to the container.

IWindsorContainer AddFacility<T>(string key, Func<T, object> onCreate) where T : IFacility

Creates and adds an IFacility facility to the container.

Creates and adds an IFacility facility to the container.

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

Creates and adds an IFacility facility to the container.

IWindsorContainer AddFacility<T>(Func<T, object> onCreate) where T : IFacility

Creates and adds an IFacility facility to the container.

Gets a child container instance by name.

Installs the components provided by the IWindsorInstallers with the IWindsorContainer. The component installers.The container.

Registers the components provided by the IRegistrations with the IWindsorContainer.

Create a new registration using Component.For() or AllTypes.

void Release(object instance)

Releases a component instance

Remove a child container

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

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

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