https://github.com/z4kn4fein/stashbox
A lightweight, fast, and portable dependency injection framework for .NET-based solutions.
https://github.com/z4kn4fein/stashbox
dependency-injection dependency-injection-container dependency-injection-framework di inversion-of-control ioc net-standard stashbox
Last synced: about 1 month ago
JSON representation
A lightweight, fast, and portable dependency injection framework for .NET-based solutions.
- Host: GitHub
- URL: https://github.com/z4kn4fein/stashbox
- Owner: z4kn4fein
- License: mit
- Created: 2015-09-03T08:32:20.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2025-04-08T02:00:34.000Z (3 months ago)
- Last Synced: 2025-04-15T02:09:22.029Z (2 months ago)
- Topics: dependency-injection, dependency-injection-container, dependency-injection-framework, di, inversion-of-control, ioc, net-standard, stashbox
- Language: C#
- Homepage: https://z4kn4fein.github.io/stashbox
- Size: 11.4 MB
- Stars: 144
- Watchers: 11
- Forks: 10
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
- awesome-dotnet-core - Stashbox - A lightweight, portable dependency injection framework for .NET based solutions. (Frameworks, Libraries and Tools / IOC)
- awesome-dotnet-core - Stashbox - 基于.NET的解决方案的轻量级,可移植依赖注入框架。 (框架, 库和工具 / 控制反转IOC)
- fucking-awesome-dotnet-core - Stashbox - A lightweight, portable dependency injection framework for .NET based solutions. (Frameworks, Libraries and Tools / IOC)
- awesome-dotnet-core - Stashbox - A lightweight, portable dependency injection framework for .NET based solutions. (Frameworks, Libraries and Tools / IOC)
README
# Stashbox
[](https://ci.appveyor.com/project/pcsajtai/stashbox/branch/master)
[](https://github.com/z4kn4fein/stashbox/actions/workflows/linux-macOS-CI.yml)
[](https://www.nuget.org/packages/Stashbox)
[](https://sonarcloud.io/project/overview?id=z4kn4fein_stashbox)
[](https://sonarcloud.io/project/overview?id=z4kn4fein_stashbox)
[](https://sonarcloud.io/project/overview?id=z4kn4fein_stashbox)
[](https://github.com/dotnet/sourcelink)Stashbox is a lightweight, fast, and portable dependency injection framework for .NET-based solutions. It encourages the building of loosely coupled applications and simplifies the construction of hierarchical object structures. It can be integrated easily with .NET Core, Generic Host, ASP.NET, Xamarin, and many other applications.
- [Documentation](https://z4kn4fein.github.io/stashbox)
- [Release notes](https://github.com/z4kn4fein/stashbox/blob/master/CHANGELOG.md)
- [ASP.NET Core sample](https://github.com/z4kn4fein/stashbox-extensions-dependencyinjection/tree/master/sample)Github (stable) | NuGet (stable) | NuGet (pre-release)
--- | --- | ---
[](https://github.com/z4kn4fein/stashbox/releases) | [](https://www.nuget.org/packages/Stashbox) | [](https://www.nuget.org/packages/Stashbox/)## Core Attributes
- 🚀 Fast, thread-safe, and lock-free operations.
- ⚡️ Easy-to-use Fluent configuration API.
- ♻️ Small memory footprint.
- 🔄 Tracks the dependency tree for cycles.
- 🚨 Detects and warns about misconfigurations.
- 🔥 Gives fast feedback on registration/resolution issues.## Supported Platforms
- .NET 5+
- .NET Standard 2.0+
- .NET Framework 4.5+
- Mono
- Universal Windows Platform
- Xamarin (Android/iOS/Mac)
- Unity## Contact & Support
- [](https://gitter.im/z4kn4fein/stashbox) [](https://3vj.short.gy/stashbox-slack)
- Create an [issue](https://github.com/z4kn4fein/stashbox/issues) for bug reports and feature requests.
- Start a [discussion](https://github.com/z4kn4fein/stashbox/discussions) for your questions and ideas.
- Add a ⭐️ to support the project!## Extensions
- ASP.NET Core
- [Stashbox.Extensions.DependencyInjection](https://github.com/z4kn4fein/stashbox-extensions-dependencyinjection)
- [Stashbox.Extensions.Hosting](https://github.com/z4kn4fein/stashbox-extensions-dependencyinjection#net-generic-host)
- [Stashbox.AspNetCore.Hosting](https://github.com/z4kn4fein/stashbox-extensions-dependencyinjection)
- [Stashbox.AspNetCore.Multitenant](https://github.com/z4kn4fein/stashbox-extensions-dependencyinjection#multitenant)
- [Stashbox.AspNetCore.Testing](https://github.com/z4kn4fein/stashbox-extensions-dependencyinjection#testing)
- ASP.NET
- [Stashbox.Web.WebApi](https://github.com/z4kn4fein/stashbox-extensions/tree/main/src/stashbox-web-webapi)
- [Stashbox.Web.Mvc](https://github.com/z4kn4fein/stashbox-extensions/tree/main/src/stashbox-web-mvc)
- [Stashbox.AspNet.SignalR](https://github.com/z4kn4fein/stashbox-extensions/tree/main/src/stashbox-signalr)
- OWIN
- [Stashbox.Owin](https://github.com/z4kn4fein/stashbox-extensions/tree/main/src/stashbox-owin)
- [Stashbox.AspNet.WebApi.Owin](https://github.com/z4kn4fein/stashbox-extensions/tree/main/src/stashbox-webapi-owin)
- [Stashbox.AspNet.SignalR.Owin](https://github.com/z4kn4fein/stashbox-extensions/tree/main/src/stashbox-signalr-owin)
- WCF
- [Stashbox.Extension.Wcf](https://github.com/devworker55/stashbox-extension-wcf)
- Hangfire
- [Stashbox.Hangfire](https://github.com/z4kn4fein/stashbox-extensions/tree/main/src/stashbox-hangfire)
- Mocking
- [Stashbox.Mocking](https://github.com/z4kn4fein/stashbox-mocking) (Moq, FakeItEasy, NSubstitute, RhinoMocks)
## Benchmarks
- [Performance](https://github.com/danielpalme/IocPerformance)
*Powered by [Jetbrains'](https://www.jetbrains.com/?from=Stashbox) [Open Source License](https://www.jetbrains.com/community/opensource/?from=Stashbox)*
[](https://www.jetbrains.com/?from=Stashbox)