views:

62

answers:

1

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

A: 

Mauricio Sheffer pointed me out how to correct the error! (see comments...or should i say i need a good pair of glasses?)

savvas sopiadis

related questions