Myth.DependencyInjection
3.0.2-preview.3
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.2-preview.3
NuGet\Install-Package Myth.DependencyInjection -Version 3.0.2-preview.3
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-preview.3" />
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-preview.3" />
<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-preview.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Myth.DependencyInjection, 3.0.2-preview.3"
#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-preview.3
#: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-preview.3&prerelease
#tool nuget:?package=Myth.DependencyInjection&version=3.0.2-preview.3&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.2-preview.3)
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.4.0-preview.8 | 62 | 3/12/2026 |
| 4.4.0-preview.7 | 46 | 3/12/2026 |
| 4.4.0-preview.6 | 53 | 2/20/2026 |
| 4.4.0-preview.5 | 51 | 2/19/2026 |
| 4.4.0-preview.4 | 51 | 2/18/2026 |
| 4.4.0-preview.3 | 57 | 2/18/2026 |
| 4.4.0-preview.2 | 53 | 2/17/2026 |
| 4.4.0-preview.1 | 62 | 2/14/2026 |
| 4.3.0 | 122 | 2/1/2026 |
| 4.3.0-preview.3 | 58 | 2/1/2026 |
| 4.3.0-preview.2 | 140 | 12/22/2025 |
| 4.2.1-preview.1 | 624 | 12/2/2025 |
| 4.2.0 | 455 | 11/30/2025 |
| 4.2.0-preview.1 | 80 | 11/29/2025 |
| 4.1.0 | 361 | 11/27/2025 |
| 4.1.0-preview.3 | 144 | 11/27/2025 |
| 4.1.0-preview.2 | 140 | 11/27/2025 |
| 4.1.0-preview.1 | 146 | 11/26/2025 |
| 4.0.1 | 203 | 11/22/2025 |
| 3.0.2-preview.3 | 122 | 8/16/2025 |
Loading failed