Table of Contents

Namespace Cuemon.Extensions.DependencyInjection

Assembly: Cuemon.Extensions.DependencyInjection.dll

Register services in the Microsoft DI container with or without options, specifying service and implementation types through a rich set of generic extension methods. Use this namespace when you need flexible DI registration with typed options. Start with Add<TService, TImplementation> for basic registration, or Add<TService, TImplementation, TOptions> when your service requires configuration options.

Availability: .NET 10, .NET 9 and .NET Standard 2.0

Complements: Microsoft.Extensions.DependencyInjection namespace 🔗

Extension Members

Type Ext Methods
IServiceCollection ⬇️ Add, Add<TService>, Add<TOptions>, Add<TService, TImplementation>, Add<TService, TImplementation, TOptions>, TryAdd, TryAdd<TService>, TryAdd<TOptions>, TryAdd<TService, TImplementation>, TryAdd<TService, TImplementation, TOptions>, TryConfigure<TOptions>, PostConfigureAllOf<TOptions>
IServiceProvider ⬇️ GetServiceDescriptors
type ⬇️ TryGetDependencyInjectionMarker

Classes

ServiceCollectionExtensions

Extension methods for the IServiceCollection interface.

ServiceOptions

Configuration options for Microsoft Dependency Injection.

ServiceProviderExtensions

Extension methods for the IServiceProvider interface.

TypeExtensions

Extension methods for the Type class.

TypeForwardServiceOptions

Configuration options for Microsoft Dependency Injection that support nested type forwarding.

Interfaces

IDependencyInjectionMarker<TMarker>

Defines a generic way to support multiple implementations of a given service for Microsoft Dependency Injection.