feat(transport): add IAuditCorrelationContext scoped service

This commit is contained in:
Joseph Doherty
2026-05-24 03:49:26 -04:00
parent ee10eba04c
commit 33f7b3979d
2 changed files with 16 additions and 0 deletions
@@ -0,0 +1,14 @@
using ScadaLink.Commons.Interfaces.Transport;
namespace ScadaLink.ConfigurationDatabase.Services;
/// <summary>
/// Per-scope mutable holder for the active bundle import id. AuditService reads it
/// while writing AuditLogEntry rows. Registered as Scoped so each Blazor circuit /
/// request gets its own value; ApplyAsync explicitly creates a service scope and
/// sets the id at the top of the transaction.
/// </summary>
public sealed class AuditCorrelationContext : IAuditCorrelationContext
{
public Guid? BundleImportId { get; set; }
}