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

ContainerWrapper

Implementation of IContainerAdapter that does not assume ownership of the wrapped IWindsorContainer.
public virtual ComponentCollection Components { get; }

Gets all the components in the IContainer.

public IWindsorContainer Container { get; }

Gets the adapted IWindsorContainer

public virtual ISite Site { get; set; }

Gets or sets the ISite associated with the IComponent.

public event EventHandler Disposed

Event that notifies the disposal of the IComponent.

Constructs an initial ContainerWrapper.

public ContainerWrapper(IWindsorContainer container, IServiceProvider parentProvider)

Constructs an initial ContainerWrapper.

public virtual void Add(IComponent component)

Adds the specified IComponent to the IContainer at the end of the list.

public virtual void Add(IComponent component, string name)

Adds the specified IComponent to the IContainer at the end of the list, and assigns a name to the component.

public virtual void AddService(Type serviceType, object serviceInstance)

Adds the specified service to the service container.

public virtual void AddService(Type serviceType, ServiceCreatorCallback callback)

Adds the specified service to the service container.

public virtual void AddService(Type serviceType, object serviceInstance, bool promote)

Adds the specified service to the service container, and optionally promotes the service to any parent service containers.

public virtual void AddService(Type serviceType, ServiceCreatorCallback callback, bool promote)

Adds the specified service to the service container, and optionally promotes the service to parent service containers.

protected virtual IContainerAdapterSite CreateSite(IComponent component, string name)

public void Dispose()

Releases the resources used by the component.

protected virtual void Dispose(bool disposing)

Releases the resources used by the component.

public virtual object GetService(Type serviceType)

Gets the service object of the specified type.

protected virtual void InternalDisposeContainer()

public virtual void Remove(IComponent component)

Removes a component from the IContainer.

public virtual void RemoveService(Type serviceType)

Removes the specified service type from the service container.

public virtual void RemoveService(Type serviceType, bool promote)

Removes the specified service type from the service container, and optionally promotes the service to parent service containers.