refactor(admin): use CorrelationId wrapper for alarm ack/shelve commands

This commit is contained in:
Joseph Doherty
2026-06-11 09:27:24 -04:00
parent 3a0e0907e4
commit f9932f2d8e
4 changed files with 15 additions and 11 deletions
@@ -1,3 +1,5 @@
using ZB.MOM.WW.OtOpcUa.Commons.Types;
namespace ZB.MOM.WW.OtOpcUa.Commons.Messages.Admin;
/// <summary>
@@ -16,7 +18,7 @@ public sealed record AcknowledgeAlarmCommand(
string AlarmId,
string User,
string? Comment,
Guid CorrelationId);
CorrelationId CorrelationId);
/// <summary>Reply for <see cref="AcknowledgeAlarmCommand"/>.</summary>
/// <param name="Ok">True iff the command was published without error.</param>
@@ -25,4 +27,4 @@ public sealed record AcknowledgeAlarmCommand(
public sealed record AcknowledgeAlarmResult(
bool Ok,
string? Message,
Guid CorrelationId);
CorrelationId CorrelationId);
@@ -1,3 +1,5 @@
using ZB.MOM.WW.OtOpcUa.Commons.Types;
namespace ZB.MOM.WW.OtOpcUa.Commons.Messages.Admin;
/// <summary>
@@ -40,7 +42,7 @@ public sealed record ShelveAlarmCommand(
ShelveKind Kind,
DateTime? UnshelveAtUtc,
string? Comment,
Guid CorrelationId);
CorrelationId CorrelationId);
/// <summary>Reply for <see cref="ShelveAlarmCommand"/>.</summary>
/// <param name="Ok">True iff the command was published without error.</param>
@@ -49,4 +51,4 @@ public sealed record ShelveAlarmCommand(
public sealed record ShelveAlarmResult(
bool Ok,
string? Message,
Guid CorrelationId);
CorrelationId CorrelationId);