Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IoC/DI Container that supports Compact Framework

Is their any IoC controllers available that will work on .NET Compact Framework?

like image 482
rudigrobler Avatar asked Jan 15 '09 08:01

rudigrobler


People also ask

Which IoC container is best?

You can waste days evaluating IOC containers. The top ones are quite similar. There is not much in this, but the best ones are StructureMap and AutoFac. At SSW we use Autofac on most projects.

What are the containers used for dependency injection?

The IoC container that is also known as a DI Container is a framework for implementing automatic dependency injection very effectively. It manages the complete object creation and its lifetime, as well as it also injects the dependencies into the classes.

Does .NET framework support dependency injection?

. NET supports the dependency injection (DI) software design pattern, which is a technique for achieving Inversion of Control (IoC) between classes and their dependencies. Dependency injection in . NET is a built-in part of the framework, along with configuration, logging, and the options pattern.

What is IoC container in .NET Core?

ASP.NET Core contains a built-in dependency injection mechanism. In the Startup. cs file, there is a method called ConfigureServices which registers all application services in the IServiceCollection parameter. The collection is managed by the Microsoft.


3 Answers

  • http://code.google.com/p/compactcontainer/
  • http://ninject.org/
like image 121
aku Avatar answered Sep 28 '22 19:09

aku


The OpenNETCF IoC framework supports the Compact Framework (as a first-class citizen), the full desktop framework, Mono for Android, MonoTouch and Windows Phone. It's also still active, with updates and fixes still being applied which can't be said about all of the other "CF supporting" frameworks.

like image 45
ctacke Avatar answered Sep 28 '22 19:09

ctacke


Ninject is a dependency injection framework that has a compact framework version.

However, in a constrained environment I would avoid using a framework and implement the inversion of control principles in my code instead.

like image 33
kgiannakakis Avatar answered Sep 28 '22 19:09

kgiannakakis