Hey guys
Normally one would go something like the following:
        public ILogger Logger
        {
                get { return logger; }
                set { logger = value; }
        }
By adding this property to a class, when you get the instance of that
class from Windsor, it automatically sets this property with an
ILogger instance. Castle knows which ILogger to create due to the
settings that are in the associated configuration file.

I have a circumstance where I need to trigger this process manually in
order to complete some of the unit tests for the changes I am dong.

So If I have a variable of type ILogger and want to populate it
manually based on the setting in the config how would I do this. I
think it has something to do with LoggingFacility but it requires me
to populate the constructor with values from the config. But i
shouldn't have to do this, how do I tell castle just to get it from
the config.

Cheers
Anthony

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Castle Project Development List" 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-devel?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to