Myth.DependencyInjection 3.0.1-preview.2

This is a prerelease version of Myth.DependencyInjection.
There is a newer version of this package available.
See the version list below for details.
dotnet add package Myth.DependencyInjection --version 3.0.1-preview.2
                    
NuGet\Install-Package Myth.DependencyInjection -Version 3.0.1-preview.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.1-preview.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.1-preview.2" />
                    
Directory.Packages.props
<PackageReference Include="Myth.DependencyInjection" />
                    
Project file
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.1-preview.2
                    
#r "nuget: Myth.DependencyInjection, 3.0.1-preview.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.
#addin nuget:?package=Myth.DependencyInjection&version=3.0.1-preview.2&prerelease
                    
Install Myth.DependencyInjection as a Cake Addin
#tool nuget:?package=Myth.DependencyInjection&version=3.0.1-preview.2&prerelease
                    
Install Myth.DependencyInjection as a Cake Tool

Myth.DependencyInjection

NuGet Version NuGet Version

License

pt-br en

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on Myth.DependencyInjection:

Package Downloads
Harpy.IoC

Basis for the ioc layer of the Harpy Framework

Myth.DependencyInjection.Providers

It is a .NET library to perform dependency injection for pre-configured third-party libraries.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
3.0.1 156 3/12/2025
3.0.1-preview.2 125 3/11/2025
3.0.1-preview.1 66 2/5/2025
3.0.0.2-preview 90 12/10/2024
3.0.0.1-preview 124 6/29/2024
3.0.0 106 12/10/2024
3.0.0-preview 107 6/28/2024
2.0.0.16 234 12/15/2023
2.0.0.15 131 12/15/2023
2.0.0.11 1,200 8/11/2022
2.0.0.10 1,168 7/20/2022
2.0.0.9 1,224 7/15/2022
2.0.0.8 1,206 7/12/2022
2.0.0.7 1,253 6/20/2022
2.0.0.6 1,292 5/23/2022
2.0.0.5 1,280 5/18/2022