Myth.DependencyInjection
3.0.2
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Myth.DependencyInjection --version 3.0.2
NuGet\Install-Package Myth.DependencyInjection -Version 3.0.2
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Myth.DependencyInjection" Version="3.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Myth.DependencyInjection" Version="3.0.2" />
<PackageReference Include="Myth.DependencyInjection" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Myth.DependencyInjection --version 3.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Myth.DependencyInjection, 3.0.2"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Myth.DependencyInjection@3.0.2
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Myth.DependencyInjection&version=3.0.2
#tool nuget:?package=Myth.DependencyInjection&version=3.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Myth.DependencyInjection
It is a .NET library for working with dependency injection, types and assemblies.
⭐ Features
- Loading application assemblies
- Find application types
- Find types from an interface
- Inject services from an interface automatically
🔮 Usage
To inject all types that implement an interface use the following code.
services.AddServiceFromType<IMyInterface>();
To use application-defined types or assemblies, use the type provider:
TypeProvider.ApplicationAssemblies // Shows all application assemblies
TypeProvider.ApplicationTypes // Shows all application types
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 8.0.1)
- Myth.Commons (>= 3.0.2)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Myth.DependencyInjection:
| Package | Downloads |
|---|---|
|
Myth.Repository.EntityFramework
Entity Framework Core implementations of repository pattern with Unit of Work, specification support, expression handling, and transaction management for robust data access with EF Core. |
|
|
Harpy.IoC
Basis for the ioc layer of the Harpy Framework |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.3.0-preview.2 | 126 | 12/22/2025 |
| 4.2.1-preview.1 | 613 | 12/2/2025 |
| 4.2.0 | 426 | 11/30/2025 |
| 4.2.0-preview.1 | 66 | 11/29/2025 |
| 4.1.0 | 341 | 11/27/2025 |
| 4.1.0-preview.3 | 131 | 11/27/2025 |
| 4.1.0-preview.2 | 127 | 11/27/2025 |
| 4.1.0-preview.1 | 134 | 11/26/2025 |
| 4.0.1 | 181 | 11/22/2025 |
| 4.0.1-preview.8 | 152 | 11/22/2025 |
| 4.0.1-preview.7 | 155 | 11/22/2025 |
| 4.0.1-preview.6 | 138 | 11/22/2025 |
| 4.0.1-preview.5 | 200 | 11/21/2025 |
| 4.0.1-preview.4 | 210 | 11/21/2025 |
| 4.0.1-preview.3 | 214 | 11/21/2025 |
| 4.0.1-preview.2 | 237 | 11/21/2025 |
| 4.0.1-preview.1 | 245 | 11/21/2025 |
| 4.0.0 | 401 | 11/20/2025 |
| 4.0.0-preview.3 | 349 | 11/19/2025 |
| 4.0.0-preview.2 | 90 | 11/15/2025 |
| 4.0.0-preview.1 | 116 | 11/15/2025 |
| 3.10.0 | 184 | 11/15/2025 |
| 3.0.5-preview.15 | 154 | 11/14/2025 |
| 3.0.5-preview.14 | 225 | 11/12/2025 |
| 3.0.5-preview.13 | 232 | 11/12/2025 |
| 3.0.5-preview.12 | 229 | 11/11/2025 |
| 3.0.5-preview.11 | 227 | 11/11/2025 |
| 3.0.5-preview.10 | 227 | 11/11/2025 |
| 3.0.5-preview.9 | 221 | 11/10/2025 |
| 3.0.5-preview.8 | 93 | 11/8/2025 |
| 3.0.5-preview.7 | 91 | 11/8/2025 |
| 3.0.5-preview.6 | 92 | 11/8/2025 |
| 3.0.5-preview.5 | 95 | 11/8/2025 |
| 3.0.5-preview.4 | 63 | 11/7/2025 |
| 3.0.5-preview.3 | 140 | 11/4/2025 |
| 3.0.5-preview.2 | 138 | 11/4/2025 |
| 3.0.5-preview.1 | 139 | 11/4/2025 |
| 3.0.4 | 227 | 11/3/2025 |
| 3.0.4-preview.19 | 81 | 11/2/2025 |
| 3.0.4-preview.18 | 76 | 11/1/2025 |
| 3.0.4-preview.17 | 79 | 11/1/2025 |
| 3.0.4-preview.16 | 83 | 11/1/2025 |
| 3.0.4-preview.15 | 75 | 10/31/2025 |
| 3.0.4-preview.14 | 141 | 10/31/2025 |
| 3.0.4-preview.13 | 140 | 10/30/2025 |
| 3.0.4-preview.12 | 133 | 10/23/2025 |
| 3.0.4-preview.11 | 128 | 10/23/2025 |
| 3.0.4-preview.10 | 128 | 10/23/2025 |
| 3.0.4-preview.9 | 125 | 10/23/2025 |
| 3.0.4-preview.8 | 119 | 10/22/2025 |
| 3.0.4-preview.6 | 121 | 10/21/2025 |
| 3.0.4-preview.5 | 120 | 10/21/2025 |
| 3.0.4-preview.4 | 124 | 10/20/2025 |
| 3.0.4-preview.3 | 127 | 10/20/2025 |
| 3.0.4-preview.2 | 47 | 10/18/2025 |
| 3.0.4-preview.1 | 131 | 10/7/2025 |
| 3.0.3 | 238 | 8/30/2025 |
| 3.0.2 | 134 | 8/23/2025 |
| 3.0.2-preview.4 | 129 | 8/21/2025 |
| 3.0.2-preview.3 | 110 | 8/16/2025 |
| 3.0.2-preview.1 | 79 | 5/23/2025 |
| 3.0.1 | 250 | 3/12/2025 |
| 3.0.1-preview.2 | 152 | 3/11/2025 |
| 3.0.1-preview.1 | 99 | 2/5/2025 |
| 3.0.0.2-preview | 145 | 12/10/2024 |
| 3.0.0.1-preview | 174 | 6/29/2024 |
| 3.0.0 | 195 | 12/10/2024 |
| 3.0.0-preview | 172 | 6/28/2024 |
| 2.0.0.16 | 310 | 12/15/2023 |
| 2.0.0.15 | 210 | 12/15/2023 |
| 2.0.0.11 | 1,377 | 8/11/2022 |
| 2.0.0.10 | 1,340 | 7/20/2022 |
| 2.0.0.9 | 1,399 | 7/15/2022 |
| 2.0.0.8 | 1,391 | 7/12/2022 |
| 2.0.0.7 | 1,424 | 6/20/2022 |
| 2.0.0.6 | 1,468 | 5/23/2022 |
| 2.0.0.5 | 1,450 | 5/18/2022 |