Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

.NET - What IoC Container framework would you recommend to a beginner in this area? [closed]

What Inversion of Control Container framework would you recommend to a beginner in this area?

like image 924
BuddyJoe Avatar asked Nov 20 '08 03:11

BuddyJoe


People also ask

What is .NET Core IoC container?

NET Core built-in IoC Container implements the IServiceProvider interface. So if for some reason, you want to create your own IoC Container, you should implement this interface. In . NET Core, the dependencies managed by the container are called services.

Which of the following is a IoC container?

ApplicationContext interfaces acts as the IoC container.

What is Spring IoC container What are the benefits of IoC?

Spring IoC Container is the core of Spring Framework. It creates the objects, configures and assembles their dependencies, manages their entire life cycle. The Container uses Dependency Injection(DI) to manage the components that make up the application.


2 Answers

James Kovacs did a dnrtv screencast where he shows how to create your own IOC container. I recommend this to a beginner not because it's necessarily the one you want to use but because it shows the basics of why you need an IOC container and what the basic functionality is. After this, try moving on to Castle Windsor or Structure Map.

like image 189
denis phillips Avatar answered Sep 24 '22 20:09

denis phillips


Autofac.

Lightweight, simple, fast, C# 3.0-oriented and works (for me) better in complex projects than any other IoC Container (even Windsor).

Primary features:

  • Deterministic disposal of components
  • Expression-based configuration
  • Proper support for multi-scoped component resolution
  • High performance
  • Lean codebase
like image 43
Rinat Abdullin Avatar answered Sep 20 '22 20:09

Rinat Abdullin