RE: Which IoC container should I use?
It entirely depends on what you are looking for in an IoC container, for composition I personally use MEF[1] but that's likely a bias because I worked on it. I've also heard very good things about Autofac - and looking at the latest appears to be very influenced by some of the things we set out to achieve in MEF. Not surprisingly, Nick Blumhardt, who owns Autofac, also used work on MEF. :) [1] http://msdn.microsoft.com/en-us/library/system.componentmodel.composition.aspx -Original Message- From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] On Behalf Of Bec Carter Sent: Sunday, February 20, 2011 4:23 PM To: ozDotNet Subject: Which IoC container should I use? G'Day, What IoC containers do you all recommend? There are so many around! Cheers, Bec
Re: Which IoC container should I use?
I use http://ninject.org/ at the time it was the only one which offered a fluid interface to do the configuration in code. I really really dislike using XML to configure things like this. (but also because the mascot is a Ninja!) That said I do hear a lot about Autofac on twitter from the Readify guys. Maybe I should give it a look. -David Burela On 22 February 2011 04:54, David Kean david.k...@microsoft.com wrote: It entirely depends on what you are looking for in an IoC container, for composition I personally use MEF[1] but that's likely a bias because I worked on it. I've also heard very good things about Autofac - and looking at the latest appears to be very influenced by some of the things we set out to achieve in MEF. Not surprisingly, Nick Blumhardt, who owns Autofac, also used work on MEF. :) [1] http://msdn.microsoft.com/en-us/library/system.componentmodel.composition.aspx -Original Message- From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] On Behalf Of Bec Carter Sent: Sunday, February 20, 2011 4:23 PM To: ozDotNet Subject: Which IoC container should I use? G'Day, What IoC containers do you all recommend? There are so many around! Cheers, Bec
Which IoC container should I use?
G'Day, What IoC containers do you all recommend? There are so many around! Cheers, Bec
Re: Which IoC container should I use?
I was trying to answer this for myself recently and found this: http://stackoverflow.com/questions/411660/enterprise-library-unity-vs-other-ioc-containers http://stackoverflow.com/questions/411660/enterprise-library-unity-vs-other-ioc-containersIt's a little dated though. Enterprise Library has had a major release since the above question was answered. I'm not sure about the others. For me, since I'm looking at using some of the other EntLib 'Application Blocks' (and later maybe Prism) for my project Unity seems like a good fit. I've read up on it and it seems pretty full featured. I haven't actually implemented anything with it yet since I've been working around some issues with the Logging Application Block (but that's another story). While researching this I don't think I read any bad stories about any of the IoC implementations - they all do the basic job and that's what provides most of the benefit. On Mon, Feb 21, 2011 at 10:23 AM, Bec Carter bec.usern...@gmail.com wrote: G'Day, What IoC containers do you all recommend? There are so many around! Cheers, Bec
RE: Which IoC container should I use?
Castle Windsor -Original Message- From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] On Behalf Of Bec Carter Sent: Monday, 21 February 2011 10:23 AM To: ozDotNet Subject: Which IoC container should I use? G'Day, What IoC containers do you all recommend? There are so many around! Cheers, Bec
Re: Which IoC container should I use?
Ahh, an idealist:) Combine tight deadlines, tire fire of existing code and lastly the realities of day to day cubicles in enterprise.. AutoFac is the vaccination one needs to fight off further downward spiral of bad code. --- Regards, Scott Barnes http://www.riagenic.com On Mon, Feb 21, 2011 at 11:12 AM, Noon Silk noonsli...@gmail.com wrote: On Mon, Feb 21, 2011 at 12:08 PM, Scott Barnes scott.bar...@gmail.com wrote: Life without AutoFac isn't life worth living.. I call it my little secret prayer... oh no, i've backed myself into a OO corner.. i really need FooClass but my composition is a mess Well there's your problem ... Solution: Become better at programming :-) dear .Net gods, i'm praying for FooClass...BING!...there it is.. :) Its like you're cheating at code :D --- Regards, Scott Barnes http://www.riagenic.com -- Noon Silk http://dnoondt.wordpress.com/ (Noon Silk) | http://www.mirios.com.au:8081 Fancy a quantum lunch? http://www.mirios.com.au:8081/index.php?title=Quantum_Lunch Every morning when I wake up, I experience an exquisite joy — the joy of being this signature.
Re: Which IoC container should I use?
I 3 Autofac. On 21/02/2011, at 10:23 AM, Bec Carter bec.usern...@gmail.com wrote: G'Day, What IoC containers do you all recommend? There are so many around! Cheers, Bec
Re: Which IoC container should I use?
Thanks for all responses- I will check them out. On Mon, Feb 21, 2011 at 1:24 PM, Michael Minutillo michael.minuti...@gmail.com wrote: I guess it's still early in the day but I'm surprised not to see any StructureMap/Windsor peeps throwing their hats in the ring. Back to the original point, most of the containers will provide many of the same capabilities but in slightly different ways. At the end of the day there are only so many ways you can build a dictionary of object factories (which is sort of all an IoC container is). Most of the time the differences are in how you register components with the container and some of these features can get quite advanced so by the time you need those, you've already made your choice. If you have the time, the best thing for you to do is to build a very small app representative of the way you'll be doing things and then try each of the containers out to see how they feel. On Mon, Feb 21, 2011 at 10:13 AM, Joseph Cooney joseph.coo...@gmail.com wrote: I 3 Autofac. On 21/02/2011, at 10:23 AM, Bec Carter bec.usern...@gmail.com wrote: G'Day, What IoC containers do you all recommend? There are so many around! Cheers, Bec
Re: Which IoC container should I use?
Aaah both a realist and a pragmatist :) Regards On 21 February 2011 13:07, Scott Barnes scott.bar...@gmail.com wrote: Ahh, an idealist:) Combine tight deadlines, tire fire of existing code and lastly the realities of day to day cubicles in enterprise.. AutoFac is the vaccination one needs to fight off further downward spiral of bad code. --- Regards, Scott Barnes http://www.riagenic.com On Mon, Feb 21, 2011 at 11:12 AM, Noon Silk noonsli...@gmail.com wrote: On Mon, Feb 21, 2011 at 12:08 PM, Scott Barnes scott.bar...@gmail.com wrote: Life without AutoFac isn't life worth living.. I call it my little secret prayer... oh no, i've backed myself into a OO corner.. i really need FooClass but my composition is a mess Well there's your problem ... Solution: Become better at programming :-) dear .Net gods, i'm praying for FooClass...BING!...there it is.. :) Its like you're cheating at code :D --- Regards, Scott Barnes http://www.riagenic.com -- Noon Silk http://dnoondt.wordpress.com/ (Noon Silk) | http://www.mirios.com.au:8081 Fancy a quantum lunch? http://www.mirios.com.au:8081/index.php?title=Quantum_Lunch Every morning when I wake up, I experience an exquisite joy — the joy of being this signature.
Re: Which IoC container should I use?
On 21 February 2011 13:50, Nathan Schultz milish...@gmail.com wrote: I've used both StructureMap and Unity in anger. Luck skywalker much? :) Regards Arjang