feat(GWC-37,WRK-32): refresh live alarm watch lists
This commit is contained in:
@@ -7,7 +7,8 @@ namespace ZB.MOM.WW.MxGateway.Worker.MxAccess;
|
||||
/// <summary>
|
||||
/// Per-session interface routing the worker's alarm IPC commands —
|
||||
/// <c>SubscribeAlarmsCommand</c>, <c>AcknowledgeAlarmCommand</c>,
|
||||
/// <c>QueryActiveAlarmsCommand</c>, <c>UnsubscribeAlarmsCommand</c> —
|
||||
/// <c>UpdateAlarmWatchListCommand</c>, <c>QueryActiveAlarmsCommand</c>,
|
||||
/// <c>UnsubscribeAlarmsCommand</c> —
|
||||
/// to the underlying <see cref="AlarmDispatcher"/>. Production binding
|
||||
/// is <see cref="AlarmCommandHandler"/>; tests substitute a fake.
|
||||
/// </summary>
|
||||
@@ -24,6 +25,13 @@ public interface IAlarmCommandHandler : IDisposable
|
||||
/// <param name="sessionId">The session identifier.</param>
|
||||
void Subscribe(SubscribeAlarmsCommand command, string sessionId);
|
||||
|
||||
/// <summary>
|
||||
/// Replace the active auto-failover subscription's subtag standby
|
||||
/// targets without restarting its primary provider.
|
||||
/// </summary>
|
||||
/// <param name="watchList">The complete replacement watch list.</param>
|
||||
void UpdateWatchList(IReadOnlyList<AlarmSubtagTarget> watchList);
|
||||
|
||||
/// <summary>Tear down the active subscription. No-op if not subscribed.</summary>
|
||||
void Unsubscribe();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user