Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Sunday, January 15, 2017 11:38 AM
Hi , I would like to know if exist any limitation to ninject compare to autofac as dependency injection?
All replies (4)
Monday, January 16, 2017 5:48 AM ✅Answered | 1 vote
Hi Guy BioNexus,
Thank you for posting here.
Based on my search, you could download the source file from the IOC Container For .Net -Unity, Ninject, Autofac at a glance.
In the article, it shows comparison between three most popular DI in .net. It has a good explanation of comparison between Ninject and Autofac.
I hope this would be helpful.
Best Regards,
Wendy
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact [email protected].
Tuesday, January 17, 2017 6:38 PM ✅Answered | 1 vote
I've used both (amongst others). They all do basically the same thing but with different approaches. Nobody can really answer this question for you as only you know the requirements of your app. Do you need to be able to configure this at runtime? What kind of performance are you interested in? Do you need nested scopes? Do you want something that integrates into a console app or ASP.NET core, etc? All these questions you should already have the answer to. Then look at the documentation and forums for each of the IoCs and see which one meets all your requirements. That is the only way to know which one to use. Different apps may have different requirements so what works for your current app may not bee a good choice for the next app.
Questions related to the specific third-party products you mention should be posted in their forums. These forums are for MS technologies only.
Sunday, January 15, 2017 12:29 PM
Hello,
Have only worked with NInject, only issue we've ran into is with very complex base classes but works fine for medium level complexity.
Please remember to mark the replies as answers if they help and unmark them if they provide no help, this will help others who are looking for solutions to the same or similar problem. Contact via my Twitter (Karen Payne) or Facebook (Karen Payne) via my MSDN profile but will not answer coding question on either.
VB Forums - moderator
Tuesday, January 24, 2017 11:05 AM
Thanks for all your replies,
took note for the last one.
Best regards.