SyncSession
Represents the ephemeral sync session state (_sync_session table).
public sealed record SyncSession : IEquatable<SyncSession>
Example
// Enable trigger suppression during sync
var session = new SyncSession(SyncActive: true);
await syncSessionRepository.SetAsync(session);
// Apply remote changes without triggering local change logging
foreach (var change in remoteChanges)
{
await ApplyChange(change);
}
// Disable trigger suppression
var inactive = new SyncSession(SyncActive: false);
await syncSessionRepository.SetAsync(inactive);
Constructors
SyncSession
public SyncSession(bool SyncActive)
Represents the ephemeral sync session state (_sync_session table).
| Parameter | Type | Description |
|---|---|---|
SyncActive |
Boolean |
When true (1), triggers are suppressed during change application. |
Properties
SyncActive
public bool SyncActive { get; init; }
When true (1), triggers are suppressed during change application.