If you only have one implementation of ICsvReader registered then any component that depends on an ICsvReader will get that one component (assuming it's being resolved via Windsor).
I guess I'm confused because you said you have multiple implementations of ICsvReader but you only want to register one of them. Could you give a code example of how you'd like your code to look like in terms of registration and component resolution? --- Patrick Steele http://weblogs.asp.net/psteele On Mon, Dec 31, 2012 at 4:13 AM, Tomek Pluskiewicz <[email protected]>wrote: > Hi > > I have a seemingly simple use case. There is a ICsvReader component. > Let's name it simply Reader here. We load a known set of CSV files and > some of them have headers and some don't. Currently there are multiple > readers: Reader_Skips1Row, Reader_Skips2Rows etc. > > Is there a way to register only one component and have Windsor look at > the component key, strip the "_Skips..." part and resolve the required > component with relevant properties set? > > I have tried subresolver and facility with no luck. > > Thanks, > Tom > > -- > 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. > > -- 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.
