Is their any IoC controllers available that will work on .NET Compact Framework?
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.
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.
. 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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With