I am new to Castle, trying to configure the container programmatically
rather than with XML.

I have an interface which has two implementations.

container.AddComponent("importDB", typeof (IPostInboundToDatabase),
typeof (PostAddresses));
container.AddComponent("importFC", typeof (IPostInboundToDatabase),
typeof (PostFC));

In the constructor into which I want to inject both implementations, I
have tried two ways to define the signature:

        public Import(IDictionary<string, IPostInboundToDatabase>
inboundDB) {...}
        public Import(IPostInboundToDatabase[] inboundDB) {...}

Both signatures resulted in the following error:

Keys (components with specific keys)
- inboundDB which was not registered.

If this can be done, what is the proper way to do it? I have to use
programmatic, not XML, configuration.

Thanks for any help, Lars

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to