worker(alarms): route ForcedMode/watch-list/failover via AlarmCommandHandler; emit provider-mode-changed event
This commit is contained in:
@@ -13,10 +13,16 @@ namespace ZB.MOM.WW.MxGateway.Worker.MxAccess;
|
||||
/// </summary>
|
||||
public interface IAlarmCommandHandler : IDisposable
|
||||
{
|
||||
/// <summary>Begin a subscription against the supplied AVEVA alarm-provider expression.</summary>
|
||||
/// <param name="subscription">The AVEVA alarm-provider subscription expression.</param>
|
||||
/// <summary>
|
||||
/// Begin an alarm subscription from the supplied command. The command's
|
||||
/// <see cref="SubscribeAlarmsCommand.ForcedMode"/> and
|
||||
/// <see cref="SubscribeAlarmsCommand.WatchList"/> select the consumer:
|
||||
/// alarmmgr-only (the default), subtag-only, or an auto-failover
|
||||
/// composite over both.
|
||||
/// </summary>
|
||||
/// <param name="command">The full SubscribeAlarms command.</param>
|
||||
/// <param name="sessionId">The session identifier.</param>
|
||||
void Subscribe(string subscription, string sessionId);
|
||||
void Subscribe(SubscribeAlarmsCommand command, string sessionId);
|
||||
|
||||
/// <summary>Tear down the active subscription. No-op if not subscribed.</summary>
|
||||
void Unsubscribe();
|
||||
|
||||
Reference in New Issue
Block a user