re: Register IEnumerableTSomething in the container Options

2009-10-12 Thread Thejuan
I tried posting this before, didn't seem to work. Sorry if you got it twice. It's in response to http://groups.google.com/group/castle-project-users/browse_thread/thread/831d5862dccf13e2/4bd4dbaa051f7089?lnk=gstq=IEnumerable#4bd4dbaa051f7089 I have the same problem. Here is a test to show the

Re: Register IEnumerableTSomething in the container Options

2009-10-12 Thread Jonathon Rossi
Yes, like the linked thread you can use a sub dependency resolver. There are 2 baked into MicroKernel (for arrays and lists, however an IEnumerableT should be just as easy). You register it as follows: Kernel.Resolver.AddSubResolver(new ArrayResolver(Kernel));

Re: Register IEnumerableTSomething in the container Options

2009-10-12 Thread Mauricio Scheffer
If you can use an array instead of an IEnumerable, then you only need to add the ArrayResolver: http://stackoverflow.com/questions/1057977 On Oct 12, 6:21 am, Thejuan aamills...@gmail.com wrote: I tried posting this before, didn't seem to work. Sorry if you got it twice. It's in response

Re: Register IEnumerableTSomething in the container

2009-06-21 Thread Ayende Rahien
Can you show the problematic code? On Fri, Jun 19, 2009 at 11:36 PM, Vadimmer vadimkanto...@gmail.com wrote: I would like to register IEnumerableTSomething in a container and then resolve it as IEnumerableTSomething. At the moment Windsor prevents me from doing so as it considers

Re: Register IEnumerableTSomething in the container

2009-06-20 Thread Vadim Kantorov
IEnumerableTSomething in a container and then resolve it as IEnumerableTSomething. At the moment Windsor prevents me from doing so as it considers IEnumerableTSomething constructor argument is a parameter and not a service. I perfectly see the root is in the GenericListConvertor. Is there any way

Register IEnumerableTSomething in the container

2009-06-19 Thread Vadimmer
I would like to register IEnumerableTSomething in a container and then resolve it as IEnumerableTSomething. At the moment Windsor prevents me from doing so as it considers IEnumerableTSomething constructor argument is a parameter and not a service. I perfectly see the root