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, ...)
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.
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.
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.
.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.
You could try Unity 3.0 for .NET4.5 Preview.
Here is the source for Ninject WinRT: https://github.com/remogloor/ninject It just not yet released.
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