Table of Contents

Class WindsorContainerExtensions

Namespace
Mokkit.Containers.CastleWindsor
Assembly
Mokkit.Containers.CastleWindsor.dll

Extensions that register services to be resolved from the test stage (the shared bag) rather than from Windsor, mirroring the Microsoft DI ResolveFromStage. Used to bridge mocks from a sibling mock container into the real graph.

public static class WindsorContainerExtensions

Inheritance

Inherited Members

Methods

ResolveFromStage<T>(IWindsorContainer)

Registers T to be resolved from the stage.

public static IWindsorContainer ResolveFromStage<T>(this IWindsorContainer container) where T : class

Parameters

container IWindsorContainer

The Windsor container.

Returns

IWindsorContainer

The container for fluent chaining.

Type Parameters

T

The service type.

ResolveFromStage(IWindsorContainer, Type)

Registers serviceType to be resolved from the stage.

public static IWindsorContainer ResolveFromStage(this IWindsorContainer container, Type serviceType)

Parameters

container IWindsorContainer

The Windsor container.

serviceType Type

The service type.

Returns

IWindsorContainer

The container for fluent chaining.