talira

Simple Injector

An easy, fast dependency injection library for .NET with strong diagnostics

open sourceMITfree

Simple Injector is an open source dependency injection (DI) library for .NET that makes it easy to build loosely coupled applications from components. It uses code-based configuration, keeps a deliberately small core of features that still covers advanced scenarios, and has built-in diagnostics that find common configuration mistakes. It integrates with ASP.NET, Web API, MVC, WCF and other frameworks, and runs on .NET, .NET Standard, Mono and Xamarin. Its makers say it is, and always will be, free.

Problems it solves

  • add dependency injection to a .NET application
  • find misconfigured registrations in my DI container
  • a fast DI container for ASP.NET

Features

  • code-based dependency injection configuration
  • built-in diagnostics for configuration problems
  • integrations with ASP.NET, Web API, MVC and WCF
  • small, focused core

Alternatives

The same job

These do what Simple Injector does.

  1. Autofac An addictive Inversion of Control container for .NET
  2. Scrutor Assembly scanning and decoration extensions for Microsoft.Extensions.DependencyInjection

Compare Simple Injector with the top 3