Skip to content
Documentation

ContainerExtensions Class

Provides extension methods to register services required for database logging with an IContainer.

public static class ContainerExtensions

Inheritance System.Object 🡒 ContainerExtensions

Use the UseSessionFactory(this IContainer) method to register the default ISessionFactory implementation. This is typically called automatically by AddHakomDatabaseLog(this ILoggingBuilder) and does not need to be called manually in most scenarios.

ContainerExtensions.UseSessionFactory(this IContainer) Method

Section titled “ContainerExtensions.UseSessionFactory(this IContainer) Method”

Registers the default implementation of ISessionFactory with the given container.

public static HAKOM.DependencyInjection.Core.Net.Api.IContainer UseSessionFactory(this HAKOM.DependencyInjection.Core.Net.Api.IContainer container);

container IContainer

The IContainer instance to register the ISessionFactory with.

IContainer
The container for chaining.

System.ArgumentNullException
Thrown when container is null.

The ISessionFactory is registered as a transient service. It creates Session instances with unique System.Guid-based identifiers.

© 2026 Volue.Version v0.6.38017 November 2026