Myth.DependencyInjection 3.0.0-preview

This is a prerelease version of Myth.DependencyInjection.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package Myth.DependencyInjection --version 3.0.0-preview                
NuGet\Install-Package Myth.DependencyInjection -Version 3.0.0-preview                
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.0-preview" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Myth.DependencyInjection --version 3.0.0-preview                
#r "nuget: Myth.DependencyInjection, 3.0.0-preview"                
#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.
// Install Myth.DependencyInjection as a Cake Addin
#addin nuget:?package=Myth.DependencyInjection&version=3.0.0-preview&prerelease

// Install Myth.DependencyInjection as a Cake Tool
#tool nuget:?package=Myth.DependencyInjection&version=3.0.0-preview&prerelease                

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. 
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.0.1-preview 99 6/29/2024
3.0.0-preview 90 6/28/2024
2.0.0.16 224 12/15/2023
2.0.0.15 120 12/15/2023
2.0.0.11 1,174 8/11/2022
2.0.0.10 1,147 7/20/2022
2.0.0.9 1,204 7/15/2022
2.0.0.8 1,186 7/12/2022
2.0.0.7 1,229 6/20/2022
2.0.0.6 1,271 5/23/2022
2.0.0.5 1,259 5/18/2022