Myth.DependencyInjection
3.0.4-preview.14
This is a prerelease version of Myth.DependencyInjection.
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.4-preview.14
NuGet\Install-Package Myth.DependencyInjection -Version 3.0.4-preview.14
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.4-preview.14" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Myth.DependencyInjection" Version="3.0.4-preview.14" />
<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.4-preview.14
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Myth.DependencyInjection, 3.0.4-preview.14"
#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.4-preview.14
#: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.4-preview.14&prerelease
#tool nuget:?package=Myth.DependencyInjection&version=3.0.4-preview.14&prerelease
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.4-preview.14)
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 |
|---|---|---|
| 3.0.5-preview.15 | 0 | 11/14/2025 |
| 3.0.5-preview.14 | 65 | 11/12/2025 |
| 3.0.5-preview.13 | 75 | 11/12/2025 |
| 3.0.5-preview.12 | 70 | 11/11/2025 |
| 3.0.5-preview.11 | 69 | 11/11/2025 |
| 3.0.5-preview.10 | 70 | 11/11/2025 |
| 3.0.5-preview.9 | 76 | 11/10/2025 |
| 3.0.5-preview.8 | 77 | 11/8/2025 |
| 3.0.5-preview.7 | 75 | 11/8/2025 |
| 3.0.5-preview.6 | 77 | 11/8/2025 |
| 3.0.5-preview.5 | 79 | 11/8/2025 |
| 3.0.5-preview.4 | 51 | 11/7/2025 |
| 3.0.5-preview.3 | 128 | 11/4/2025 |
| 3.0.5-preview.2 | 126 | 11/4/2025 |
| 3.0.5-preview.1 | 127 | 11/4/2025 |
| 3.0.4 | 204 | 11/3/2025 |
| 3.0.4-preview.19 | 68 | 11/2/2025 |
| 3.0.4-preview.18 | 63 | 11/1/2025 |
| 3.0.4-preview.17 | 65 | 11/1/2025 |
| 3.0.4-preview.16 | 66 | 11/1/2025 |
| 3.0.4-preview.15 | 61 | 10/31/2025 |
| 3.0.4-preview.14 | 128 | 10/31/2025 |
| 3.0.4-preview.13 | 127 | 10/30/2025 |
| 3.0.4-preview.12 | 125 | 10/23/2025 |
| 3.0.4-preview.11 | 119 | 10/23/2025 |
| 3.0.4-preview.10 | 120 | 10/23/2025 |
| 3.0.4-preview.9 | 118 | 10/23/2025 |
| 3.0.4-preview.8 | 112 | 10/22/2025 |
| 3.0.4-preview.6 | 112 | 10/21/2025 |
| 3.0.4-preview.5 | 112 | 10/21/2025 |
| 3.0.4-preview.4 | 117 | 10/20/2025 |
| 3.0.4-preview.3 | 117 | 10/20/2025 |
| 3.0.4-preview.2 | 38 | 10/18/2025 |
| 3.0.4-preview.1 | 125 | 10/7/2025 |
| 3.0.3 | 220 | 8/30/2025 |
| 3.0.2 | 116 | 8/23/2025 |
| 3.0.2-preview.4 | 122 | 8/21/2025 |
| 3.0.2-preview.3 | 102 | 8/16/2025 |
| 3.0.2-preview.1 | 72 | 5/23/2025 |
| 3.0.1 | 236 | 3/12/2025 |
| 3.0.1-preview.2 | 146 | 3/11/2025 |
| 3.0.1-preview.1 | 92 | 2/5/2025 |
| 3.0.0.2-preview | 139 | 12/10/2024 |
| 3.0.0.1-preview | 169 | 6/29/2024 |
| 3.0.0 | 179 | 12/10/2024 |
| 3.0.0-preview | 166 | 6/28/2024 |
| 2.0.0.16 | 298 | 12/15/2023 |
| 2.0.0.15 | 196 | 12/15/2023 |
| 2.0.0.11 | 1,360 | 8/11/2022 |
| 2.0.0.10 | 1,318 | 7/20/2022 |
| 2.0.0.9 | 1,385 | 7/15/2022 |
| 2.0.0.8 | 1,374 | 7/12/2022 |
| 2.0.0.7 | 1,410 | 6/20/2022 |
| 2.0.0.6 | 1,453 | 5/23/2022 |
| 2.0.0.5 | 1,437 | 5/18/2022 |