Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Dependency Injection framework for Windows 8 metro apps

i can't seem to find a dependency injection framework for windows 8 metro apps.

Is there a framework for win8 metro apps?

Ninject is not yet support for win8 metro. So does anybody have a suggestion? (Castle, Spring, ...)

like image 358
Preben Huybrechts Avatar asked Jun 10 '12 14:06

Preben Huybrechts


People also ask

What is the best dependency injection library for ASP NET?

Lamar - A fast IoC container heavily optimized for usage within ASP.NET Core and other .NET server side applications. Simple Injector - Simple Injector is an easy-to-use Dependency Injection (DI) library for .NET 4+ that supports Silverlight 4+, Windows Phone 8, Windows 8 including Universal apps and Mono.

Is it possible to add dependency injection to Windows services?

Frameworks like ASP.NET Core have dependency injection built in, but Windows services do not. It is possible to add dependency injection to Windows services, and inversion of control also allows easier unit testing. This post will cover one approach. AirQualityServiceClient queries Transport for London’s public API for air quality.

What is dynamic dependency injection in ASP NET Core?

Dependency Injection allows for separation of concerns, inversion of control, and allows loose coupling of components. Frameworks like ASP.NET Core have dependency injection built in, but Windows services do not. It is possible to add dependency injection to Windows services, and inversion of control also allows easier unit testing.

What is Dependency Injection (DI) in net?

.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 first-class citizen, along with configuration, logging, and the options pattern.


2 Answers

You could try Unity 3.0 for .NET4.5 Preview.

like image 101
JP Alioto Avatar answered Sep 18 '22 01:09

JP Alioto


Here is the source for Ninject WinRT: https://github.com/remogloor/ninject It just not yet released.

like image 36
Remo Gloor Avatar answered Sep 20 '22 01:09

Remo Gloor