feat(transport): add IAuditCorrelationContext scoped service
This commit is contained in:
@@ -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; }
|
||||
}
|
||||
Reference in New Issue
Block a user