Thanks!
I ended up with this (should anyone else ever google this).
public void LogComponentsInContainer(IWindosrContainer container)
{
INamingSubSystem naming =
container.Kernel.GetSubSystem(SubSystemConstants.NamingKey) as
INamingSubSystem;
foreach (var handler in naming.GetHandlers())
{
Log.Debug("Registered on IoC: {0}, {1}, {2}",
handler.ComponentModel.Name,
handler.Service.FullName,
handler.ComponentModel.Implementation.FullName);
}
}
-jt
On Sep 30, 2:59 pm, hammett <[EMAIL PROTECTED]> wrote:
> Yeah. You can either enumerate the handlers or use the naming service
> subsystem.
>
> On Tue, Sep 30, 2008 at 2:20 PM, James Thigpen
>
> <[EMAIL PROTECTED]> wrote:
>
> > Is it possible to enumerate all the components (id, interface, type)
> > registered in Windsor? It's just for debugging.
>
> > Thanks,
>
> > -jt
>
> --
> Cheers,
> hammetthttp://hammett.castleproject.org/
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Castle Project Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/castle-project-users?hl=en
-~----------~----~----~----~------~----~------~--~---