Dignus.Extensions.DependencyInjection 1.0.12

dotnet add package Dignus.Extensions.DependencyInjection --version 1.0.12
                    
NuGet\Install-Package Dignus.Extensions.DependencyInjection -Version 1.0.12
                    
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="Dignus.Extensions.DependencyInjection" Version="1.0.12" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Dignus.Extensions.DependencyInjection" Version="1.0.12" />
                    
Directory.Packages.props
<PackageReference Include="Dignus.Extensions.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 Dignus.Extensions.DependencyInjection --version 1.0.12
                    
#r "nuget: Dignus.Extensions.DependencyInjection, 1.0.12"
                    
#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 Dignus.Extensions.DependencyInjection@1.0.12
                    
#: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=Dignus.Extensions.DependencyInjection&version=1.0.12
                    
Install as a Cake Addin
#tool nuget:?package=Dignus.Extensions.DependencyInjection&version=1.0.12
                    
Install as a Cake Tool

Dignus.Extensions.DependencyInjection

Extension module that integrates Dignus.DependencyInjection with Microsoft.Extensions.DependencyInjection.
Provides seamless registration of [Injectable] types into the standard ASP.NET Core IServiceCollection,
enabling hybrid use of Dignus' high-performance DI features within the .NET dependency injection ecosystem.


Features

Feature Description
Automatic Registration Scans assemblies for [Injectable] attributes and registers services automatically.
Hybrid DI Support Bridges Dignus.DependencyInjection and Microsoft.Extensions.DependencyInjection.
Property Injection Automatically injects [Inject] properties when resolving dependencies.
LifeScope Mapping Maps Dignus LifeScope (Transient / Singleton) to .NET service lifetimes.
Zero Reflection Overhead Uses prebuilt constructor delegates for fast service activation.

Core API

Method Description
RegisterDependencies(this IServiceCollection serviceCollection, Assembly assembly) Scans the specified assembly for [Injectable] types and registers them into the service collection.

Example

using Dignus.DependencyInjection.Attributes;
using Dignus.Extensions.DependencyInjection;
using Microsoft.Extensions.DependencyInjection;
using System.Reflection;

[Injectable(LifeScope.Singleton, typeof(IMyService))]
public class MyService : IMyService
{
    [Inject] private ILogger _logger { get; set; }
}

var serviceCollection = new ServiceCollection();

// Automatically register all [Injectable] classes from the assembly
serviceCollection.RegisterDependencies(Assembly.GetExecutingAssembly());

var serviceProvider = serviceCollection.BuildServiceProvider();

var myService = serviceProvider.GetService<IMyService>();

Design Principles

  • Optimized Activation: Services are instantiated using precompiled delegates, avoiding reflection overhead.
  • Property Injection: [Inject] attributes are applied recursively for dependency resolution.
  • Compatibility Layer: Enables existing .NET Core apps to leverage Dignus' DI system.
  • Extensible & Non-Intrusive: Works transparently with the standard service registration flow.
  • Zero Runtime Configuration: All bindings are determined automatically at startup.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  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 is compatible.  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 is compatible.  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. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.12 197 6/24/2026
1.0.11 120 5/8/2026
1.0.10 229 4/25/2026
1.0.9 197 2/21/2026
1.0.8 465 12/11/2025
1.0.7 228 11/23/2025
1.0.6 246 11/22/2025
1.0.5 427 11/19/2025
1.0.4 189 11/2/2025
1.0.3 215 10/30/2025
1.0.1 208 10/28/2025
1.0.0 209 10/28/2025