feat: wire system event publishing for connect, disconnect, and shutdown

This commit is contained in:
Joseph Doherty
2026-02-23 05:41:44 -05:00
parent 89465450a1
commit 125b71b3b0
4 changed files with 217 additions and 1 deletions

View File

@@ -127,6 +127,11 @@ public sealed class InternalEventSystem : IAsyncDisposable
return sub;
}
/// <summary>
/// Returns the next monotonically increasing sequence number for event ordering.
/// </summary>
public ulong NextSequence() => Interlocked.Increment(ref _sequence);
/// <summary>
/// Enqueue an internal message for publishing through the send loop.
/// </summary>