Ingest, store, & analyze all types of time series data in a fully-managed, purpose-built database. Keep data forever with low-cost storage and superior data compression. Learn more →
Top 23 C# IoC Projects
-
For the first shot, I wanted to manually web the systems together. For the next iteration, I might go with an IoC framework like Autofac.
-
Project mention: Migrating to .Net Core MVC from .Net framework 4.8 | reddit.com/r/dotnet | 2023-01-24
if you are heavily invested in autofac you can replace the build in DI with another container. at this point i don't think it is that necessary. especially if you use scrutor. it gives your some nice assembly scanning registration that autofac/simple injector give https://github.com/khellang/Scrutor
-
SonarLint
Clean code begins in your IDE with SonarLint. Up your coding game and discover issues early. SonarLint is a free plugin that helps you find & fix bugs and security issues from the moment you start writing code. Install from your favorite IDE marketplace today.
-
Project mention: Is it possible to use both Ninject and Microsoft Dependency injection in a app? | reddit.com/r/csharp | 2022-11-14
Yes, you can. We use SimpleInjector + our own container abstractions in conjunction with MS one. Also consider reading this - https://github.com/ninject/Ninject/issues/278
-
Castle Windsor
Castle Windsor is a best of breed, mature Inversion of Control container available for .NET
-
Simple Injector
An easy, flexible, and fast Dependency Injection library that promotes best practice to steer developers towards the pit of success.
-
This is a simple Service Locator for Dart and Flutter projects with some additional goodies highly inspired by Splat. It can be used instead of InheritedWidget or Provider to access objects e.g. from your UI.
-
-
InfluxDB
Access the most powerful time series database as a service. Ingest, store, & analyze all types of time series data in a fully-managed, purpose-built database. Keep data forever with low-cost storage and superior data compression.
-
I'd like to keep the convention-based assembly scanning capabilities if ever that was possible. It's too convenient and less error prone than manually registering everything through attributes like current source generator strategies go. DryIocZero supports this somewhat using t4 templates, it gives you a method where you can register your stuff and do assembly scanning and it'll generate your container from there. It works and is quite small and fast but the UX does need some work since t4 is rather clunky to write on.
-
-
TinyIoC
An easy to use, hassle free, Inversion of Control Container for small projects, libraries and beginners alike.
-
Project mention: What is the most cursed data structure you can think of? | reddit.com/r/ProgrammerHumor | 2023-01-01
-
-
-
-
This is good info! I had not heard of MEF being split up like this. Looks like there's a full explanation of everything here: https://github.com/microsoft/vs-mef/blob/main/doc/mef_library_differences.md
-
Enjoy! https://github.com/gustavopsantos/Reflex
-
-
-
-
-
-
Simplify.DI
Simplify is an open-source set of .NET libraries that provide infrastructure for your applications. DI and mocking friendly. (by SimplifyNet)
-
Canister
Canister acts as a wrapper for other IoC containers giving a unified interface and does automatic type discovery within your code. By default it uses the IoC container built into .Net Core.
Project mention: Would you use an attribute that registers your interface/classes with .nets IoC container? | reddit.com/r/dotnet | 2022-07-03Back before .net had a default IoC container, I built this functionality in my own container. I built it so modules could automatically wire themselves up. Just add the library and go. Now that there is a default, it lives on as an extension method/set of classes to give the same functionality. It just extends the ServiceCollection now.
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
C# IoC related posts
- "7D Mad Rogue Kart" post-mortem
- Announcing .NET 8 Preview 1
- Migrating to .Net Core MVC from .Net framework 4.8
- What is the most cursed data structure you can think of?
- Autofac Resovle with type stored in variable
- ModuleLoader vs Reference
- Is it possible to use both Ninject and Microsoft Dependency injection in a app?
-
A note from our sponsor - InfluxDB
www.influxdata.com | 21 Mar 2023
Index
What are some of the best open-source IoC projects in C#? This list will help you:
Project | Stars | |
---|---|---|
1 | Autofac | 4,105 |
2 | Scrutor | 2,862 |
3 | Ninject | 2,600 |
4 | Castle Windsor | 1,463 |
5 | Simple Injector | 1,123 |
6 | splat | 908 |
7 | StructureMap | 901 |
8 | DryIoc | 827 |
9 | IocPerformance | 826 |
10 | TinyIoC | 813 |
11 | stronginject | 781 |
12 | LightInject | 570 |
13 | Jot | 563 |
14 | Lamar | 482 |
15 | VS MEF | 353 |
16 | Reflex | 325 |
17 | Meet Grace | 315 |
18 | Pure.DI | 192 |
19 | Stashbox | 119 |
20 | di-framework | 31 |
21 | ZeroIoC | 28 |
22 | Simplify.DI | 17 |
23 | Canister | 5 |