Hi everybody!
I need to implement multi-tenancy and i like the way it is solved here.
The problem implementing this scenario (in my project) is that the following code snippet
var handlerSelectors = windsorContainer.ResolveAll<IHandlerSelector>();
gives me something ( {Castle.MicroKernel.IHandlerSelector[0]}). The following snippet should iterate through handlerSelectors but it's doing nothing !!
foreach (var handlerSelector in handlerSelectors)
{
windsorContainer.Kernel.AddHandlerSelector(handlerSelector);
}
In the debugger i can see i tries to set a value to var handlerSelector but it skips the for loop. Am i missing something??
Thanks in advance