Skip to content

OnixLabs.DependencyInjection

Matthew Layton edited this page Nov 15, 2026 · 4 revisions

OnixLabs.DependencyInjection

View on NuGet

Lightweight extensions for Microsoft's dependency injection abstractions, focused on reducing boilerplate and improving the configurability of service registration.

Installation

dotnet add package OnixLabs.DependencyInjection

Features

  • IServiceCollection extensions.
  • Configuration-driven service lifetime selection.
  • Cleaner, more consistent registration APIs.

API Reference

Type Description
IServiceCollectionExtensions IServiceCollection extension methods that register keyed and unkeyed services with a configurable ServiceLifetime selected at the call site.

Requirements

Item Supported
Target frameworks .NET 8.0, .NET 9.0, .NET 10.0, .NET 11.0
Language version C# 15
License Apache-2.0

Package Dependencies

Each target framework references Microsoft.Extensions.DependencyInjection.Abstractions from its own runtime's servicing line. On .NET 11.0 the abstractions are part of the shared framework, so there is no package reference.

Package .NET 8.0 .NET 9.0 .NET 10.0 .NET 11.0
OnixLabs.Core Same version Same version Same version Same version
Microsoft.Extensions.DependencyInjection.Abstractions 8.0.2 9.0.23 10.0.15 Shared framework (no package reference)

See Also

ONIXLabs .NET Library


Clone this wiki locally