Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Enumerate Types Registered in Windsor
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
James Thigpen  
View profile  
 More options Sep 30 2008, 5:20 pm
From: James Thigpen <James.R.Thig...@gmail.com>
Date: Tue, 30 Sep 2008 14:20:06 -0700 (PDT)
Local: Tues, Sep 30 2008 5:20 pm
Subject: Enumerate Types Registered in Windsor
Is it possible to enumerate all the components (id, interface, type)
registered in Windsor?  It's just for debugging.

Thanks,

-jt


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
hammett  
View profile  
 More options Sep 30 2008, 5:59 pm
From: hammett <hamm...@gmail.com>
Date: Tue, 30 Sep 2008 14:59:25 -0700
Local: Tues, Sep 30 2008 5:59 pm
Subject: Re: Enumerate Types Registered in Windsor
Yeah. You can either enumerate the handlers or use the naming service subsystem.

On Tue, Sep 30, 2008 at 2:20 PM, James Thigpen

<James.R.Thig...@gmail.com> wrote:

> Is it possible to enumerate all the components (id, interface, type)
> registered in Windsor?  It's just for debugging.

> Thanks,

> -jt

--
Cheers,
hammett
http://hammett.castleproject.org/

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
James Thigpen  
View profile  
 More options Sep 30 2008, 7:29 pm
From: James Thigpen <James.R.Thig...@gmail.com>
Date: Tue, 30 Sep 2008 16:29:29 -0700 (PDT)
Local: Tues, Sep 30 2008 7:29 pm
Subject: Re: Enumerate Types Registered in Windsor
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 <hamm...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »