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 WindsorContainerExtensionsInheritance
Inherited Members
Methods
ResolveFromStage<T>(IWindsorContainer)
Registers T to be resolved from the stage.
public static IWindsorContainer ResolveFromStage<T>(this IWindsorContainer container) where T : classParameters
containerIWindsorContainer-
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
containerIWindsorContainer-
The Windsor container.
serviceTypeType-
The service type.
Returns
- IWindsorContainer
-
The container for fluent chaining.