feat(adminui): add DriverStatusSignalRBridge + InMemory snapshot store

This commit is contained in:
Joseph Doherty
2026-05-28 10:13:30 -04:00
parent 3f23a1acd3
commit 29370fde3c
5 changed files with 115 additions and 0 deletions
@@ -0,0 +1,15 @@
using ZB.MOM.WW.OtOpcUa.Commons.Messages.Drivers;
namespace ZB.MOM.WW.OtOpcUa.AdminUI.Hubs;
/// <summary>
/// Singleton last-snapshot-per-instance cache. Populated by
/// <c>DriverStatusSignalRBridge</c> as it forwards DPS messages; read by
/// <see cref="DriverStatusHub.JoinDriver"/> so newly-joined clients see current state
/// without waiting for the next change event.
/// </summary>
public interface IDriverStatusSnapshotStore
{
void Upsert(DriverHealthChanged snapshot);
bool TryGet(string driverInstanceId, out DriverHealthChanged snapshot);
}