Skip to content
Documentation

HAKOM.DependencyInjection.Core.Net Assembly

Provides the core dependency injection container and application context for HAKOM software.

This assembly contains IContainer, the central service registration interface, and IApplicationContext, which wires up an entire application from its registered services. It also provides an advanced factory system for creating services that depend on runtime parameters.

The default container implementation is backed by Microsoft.Extensions.DependencyInjection, but the IContainer interface can be implemented by any DI framework.

Typical application bootstrap:

using HAKOM.DependencyInjection.Core.Net.Api;
var context = IApplicationContext.Create((container) =>
{
container
.Use<IGreeter, ConsoleGreeter>();
});
var greeter = context.Start<IGreeter>();
greeter.Greet("World");
Namespaces
HAKOM.DependencyInjection.Core.Net.Api Contains the public API surface of the HAKOM dependency injection module.
HAKOM.DependencyInjection.Core.Net.Api.Exceptions Contains the base exception type for the dependency injection module.
HAKOM.DependencyInjection.Core.Net.Api.Exceptions.DependencyInjectionExceptions Contains the intermediate exception categories for dependency injection failures.
HAKOM.DependencyInjection.Core.Net.Api.Exceptions.DependencyInjectionExceptions.ContainerRuntimeExceptions Contains exceptions thrown when the dependency injection container is used outside its intended lifecycle.
HAKOM.DependencyInjection.Core.Net.Api.Exceptions.DependencyInjectionExceptions.TypeRegistrationExceptions Contains exceptions thrown when a service registration is invalid.
HAKOM.DependencyInjection.Core.Net.Api.Exceptions.DependencyInjectionExceptions.TypeResolutionExceptions Contains exceptions thrown when the container cannot resolve a requested service.
HAKOM.DependencyInjection.Core.Net.Api.Extensions Extension methods for IContainer and Microsoft.Extensions.DependencyInjection.IServiceCollection.
HAKOM.DependencyInjection.Core.Net.Api.Factories Provides abstract factory base classes that create services using runtime parameters.
HAKOM.DependencyInjection.Core.Net.Api.Factories.Exceptions Contains exceptions thrown by the factory system when no matching registration can be found for a given set of runtime parameters.
HAKOM.DependencyInjection.Core.Net.Api.Factories.Registration Contains interfaces and delegate types used to define factory registrations.
© 2026 Volue.Version v0.6.38017 November 2026