Hi, you can use the collectionresolver to inject all IPipelineElements http://docs.castleproject.org/Windsor.Resolvers.ashx?HL=resolver,collection#_CollectionResolver__4
do you need to configure it manually in your container for the order-thing? 2011/9/11 Wim <[email protected]> > Hi All > > I have developped a pipeline, to create a chain of actions. A pipeline > element has to generics, the INPUT-type and the OUTPUT-type. > The pipeline contains an ordered list of these pipeline-elements. I > want to configure this list using Windsor.Castle xml config. > > public interface IPipelineElement{} // Marker Interface > public interface IPipelineElement<U,T> { U Process (T t); } > > public class Block1 : IPipelineElement<string, int>, IPipelineElement > { ... } > public class Block2 : IPipelineElement<int, MyType>, IPipelineElement > { ... } > public class Block3 : IPipelineElement<MyType, string>, > IPipelineElement { ... } > > public class Pipeline : IPipeline<string, string> { > public Pipeline(IList<IPipelineElement> elements) { > .... > } > } > > I tried to set up Pipeline using the following Castle XML: > > <component id="block1" type="Block1"> > </component> > > <component id="pipline" > service="IPipeline" > type="Pipeline" > > <parameters> > <elements> > <list type="IPipelineElement"> > <item>$(block1)</item> > </list> > </elements> > </parameters> > </component> > > This causes a ComponentActivator exception. But I don't really > understand why. All classes have a public constructor. > I use Castle.Windsor 2.5.3 > > Where am I wrong, or is my approach fundamentally wrong? > > Thanks for your time and effort, to help me out. > > Wim > > -- > 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.
