Simple Injector - ITsvetkoFF/Kv-013 GitHub Wiki

Overview

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. Simple Injector is easily integrated with frameworks such as Web API, MVC, WCF and many others. It’s easy to implement the dependency injection pattern with loosely coupled components using Simple Injector. Simple Injector has a carefully selected set of features in its core library to support many advanced scenarios. Simple Injector has been designed to run in partial/medium trust. Simple Injector supports code based configuration and comes with built-in diagnostics services for identifying many common configuration problems.

Install

Run the following command in the Package Manager Console

Install-Package SimpleInjector

Useful links

Documentation

Using Simple Injector will guide you through the Simple Injector basics.

The Object Lifetime Management page explains how to configure lifestyles such as transient, singleton, and many others.

See the Reference library for the complete API documentation.

See the Integration Guide for more information about how to integrate Simple Injector into your specific application framework.