tag:blogger.com,1999:blog-15136575.post4194677837908463090..comments2023-10-17T12:00:16.772+01:00Comments on Code rant: 10 Advanced Windsor Tricks – 3. How to resolve arraysMike Hadlowhttp://www.blogger.com/profile/16441901713967254504noreply@blogger.comBlogger9125tag:blogger.com,1999:blog-15136575.post-8142129821950679122012-12-17T08:40:19.002+00:002012-12-17T08:40:19.002+00:00Nice article! How would that translate to xml conf...Nice article! How would that translate to xml configuration?Frank William Abagneelehttps://www.blogger.com/profile/17176470451637901132noreply@blogger.comtag:blogger.com,1999:blog-15136575.post-26548801850113805382011-09-23T12:22:04.311+01:002011-09-23T12:22:04.311+01:00That's an even better use case for a cotainer....That's an even better use case for a cotainer. I've pretty much described how to do it in this post.Mike Hadlowhttps://www.blogger.com/profile/16441901713967254504noreply@blogger.comtag:blogger.com,1999:blog-15136575.post-88757790972073046692011-09-23T10:54:25.219+01:002011-09-23T10:54:25.219+01:00Actually, I'm more interested in instantiating...Actually, I'm more interested in instantiating the types that implement a certain interface and then run a method on that interface.<br /><br />In my case, the IConfigurable.GetColumns() just reads the properties that are marked with a certain attribute.<br />After I have the list, I cache it and I don't need the assembly anymore.Danhttps://www.blogger.com/profile/11157664211076682404noreply@blogger.comtag:blogger.com,1999:blog-15136575.post-24083110688873194182011-09-23T10:17:25.954+01:002011-09-23T10:17:25.954+01:00Hi Dan,
Yes, Windsor is ideal for that kind of th...Hi Dan,<br /><br />Yes, Windsor is ideal for that kind of thing. See<br /><br />http://mikehadlow.blogspot.com/2010/10/experimental-aspnet-mvc-add-ins-updated.html<br /><br />For an example of dynamically loaded assemblies with Windsor.Mike Hadlowhttps://www.blogger.com/profile/16441901713967254504noreply@blogger.comtag:blogger.com,1999:blog-15136575.post-4939495304559473172011-09-23T09:49:25.875+01:002011-09-23T09:49:25.875+01:00I'm trying to replace this code,
http://paste...I'm trying to replace this code, <br />http://pastebin.com/N16Bu4cs<br />with something using Windsor.<br /><br />Is it possible using this code (or something similar)?Danhttps://www.blogger.com/profile/11157664211076682404noreply@blogger.comtag:blogger.com,1999:blog-15136575.post-66619222894176106572010-06-19T20:41:16.352+01:002010-06-19T20:41:16.352+01:00Thanks agian for this good blog series. I saw a c...Thanks agian for this good blog series. I saw a code technique using StructureMap's PluginFamilyAttribute I wanted to do in Windsor. This facility is what it takes.Unknownhttps://www.blogger.com/profile/16063181567878205421noreply@blogger.comtag:blogger.com,1999:blog-15136575.post-8414597919025422712010-01-14T21:27:07.122+00:002010-01-14T21:27:07.122+00:00Mike, you are correct, ResolveAll would return the...Mike, you are correct, ResolveAll would return the same array of IThing, but it requires a dependency on the container. One of the primary rules of IoC container use is that you should avoid having a reference to the container. The whole point of the container is to automatically provide dependencies described using Dependency Injection.Mike Hadlowhttps://www.blogger.com/profile/16441901713967254504noreply@blogger.comtag:blogger.com,1999:blog-15136575.post-61756571150828936732010-01-14T15:41:10.834+00:002010-01-14T15:41:10.834+00:00Mike - difference is like between pushing and pull...Mike - difference is like between pushing and pullingKrzysztof Koźmichttps://www.blogger.com/profile/00067948285962230838noreply@blogger.comtag:blogger.com,1999:blog-15136575.post-72286430318168947912010-01-14T10:24:26.399+00:002010-01-14T10:24:26.399+00:00How does this differ from ResolveAll. Not terribly...How does this differ from ResolveAll. Not terribly familair with windosr but I thought that would return an array of registered types matching an interface?Mikenoreply@blogger.com