Event is nice and afaik, it should work. kernel = new DefaultKernel(); kernel.ComponentRegistered += (x,y)=>Console.WriteLine(x); kernel.Register(Component.For<CustomerImpl>());
Prints out the key for the component, in this case typeof(CustomerImpl).FullName Are you using Xml Configuration? In that case you may be registering components before you wire to the event. Another way (get all registered components at once) var handlers = kernel.GetAssignableHandlers(typeof(object)); There are some other ways, but I think this would suffice. Let me know how it goes You can also use GetHandlers if you want to do after registration. Tuna Toksöz Eternal sunshine of the open source mind. http://devlicio.us/blogs/tuna_toksoz http://tunatoksoz.com http://twitter.com/tehlike On Fri, Aug 21, 2009 at 12:05 PM, Colin Jack <[email protected]> wrote: > hem al --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
