Skip to content
Documentation

ISessionFactory Interface

Creates Session instances for structured logging in a HAKOM log database.

public interface ISessionFactory

The session factory is responsible for creating new sessions (with unique identifiers) and for producing inactive copies of existing sessions when they are closed. Register the default implementation with the container via UseSessionFactory(this IContainer).

Sessions are typically not created directly through this factory by consumer code. Instead, use BeginSession(this ILogger) which internally delegates to this factory.

Creates a new active Session with a unique identifier.

HAKOM.Logging.HakomDatabaseLog.Net.Api.Session Create();

Session
A new Session with Active set to true.

Creates an inactive copy of the given session, preserving its identifier but setting Active to false.

HAKOM.Logging.HakomDatabaseLog.Net.Api.Session Inactive(HAKOM.Logging.HakomDatabaseLog.Net.Api.Session session);

session Session

The Session to inactivate.

Session
A new Session with the same identity as session but with Active set to false.

© 2026 Volue.Version v0.6.38017 November 2026