Presently I'm trying to use the factory support in the fluent
registration API with multiple types of returns based off of the key
name. Since the factory support presently cannot add more than one
factory method based off the component type no matter the conditions,
I am currently not able to do this. I have a complete unit test
written out if this would help anyone understand this at all.

Here's how a small code sample on how I'm currently registering the
components:
container.Register(
        Component.For<IService>()
                .Named("standard")
                .UsingFactoryMethod(() => CentralStorage.StandardStorage),
        Component.For<IService>()
                .Named("secondary")
                .UsingFactoryMethod(() => CentralStorage.SecondaryStorage)
);

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" group.
To post to this group, send email to castle-project-users@googlegroups.com
To unsubscribe from this group, send email to 
castle-project-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/castle-project-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to