Autofac vs. Unity

9,015 views
Skip to first unread message

Mark Richman

unread,
Apr 2, 2014, 11:49:33 AM4/2/14
to aut...@googlegroups.com
I have "inherited" a project that uses Autofac. I am not familiar with Autofac, but I have used Castle Windsor and Unity. What makes Autofac a better choice overall? I plan on rewriting/rearchitecting this applicaiton framework and I would like to make an informed decision about which IoC to choose. Without knowing anything, I would choose Unity simply because it's Microsoft.

Travis Illig

unread,
Apr 2, 2014, 1:39:03 PM4/2/14
to aut...@googlegroups.com
It would probably be good to look at some of the IoC container comparisons that are out there to help inform you of the various differences.
Obviously we're going to be a little biased. :)

I like Autofac and got involved because, after having used a few different containers, the syntax and the features of Autofac appealed to me most. There are lots of different factors in making a choice for your IoC container - syntax, configurability, features, performance, community, documentation, etc. I don't know of any "definitive article" that compares and contrasts all of these.

-T

Kendall Bennett

unread,
Apr 2, 2014, 1:56:26 PM4/2/14
to aut...@googlegroups.com
I have never used any other IoC container except Ninject, and compared to Ninject, Autofac wins hands down. Best thing we ever did was switch.

Regards,

Kendall Bennett, CEO 
http://www.AMainHobbies.com
1-800-705-2215 (Toll-Free)
1-530-894-0797 (Local)

Facebook | Twitter | Youtube

--
You received this message because you are subscribed to the Google Groups "Autofac" group.
To unsubscribe from this group and stop receiving emails from it, send an email to autofac+u...@googlegroups.com.
To post to this group, send email to aut...@googlegroups.com.
Visit this group at http://groups.google.com/group/autofac.
For more options, visit https://groups.google.com/d/optout.

Jim Bolla

unread,
Apr 2, 2014, 3:33:44 PM4/2/14
to aut...@googlegroups.com
Use whichever one you are most comfortable with, are most willing to support in the long term. I don't think "because it's Microsoft" is a very good argument to choose a technology. As far as features comparisons go, this seems to be the most current and comprehensive analysis I've seen: http://featuretests.apphb.com/DependencyInjection.html
Reply all
Reply to author
Forward
0 new messages