feat: define management message contracts in Commons (10 command groups)

This commit is contained in:
Joseph Doherty
2026-03-17 14:41:54 -04:00
parent e9acd2dd34
commit 8068c499bd
11 changed files with 87 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
namespace ScadaLink.Commons.Messages.Management;
public record AuthenticatedUser(
string Username, string DisplayName,
IReadOnlyList<string> Roles, IReadOnlyList<string> PermittedSiteIds);
public record ManagementEnvelope(AuthenticatedUser User, object Command, string CorrelationId);
public record ManagementSuccess(string CorrelationId, object? Data);
public record ManagementError(string CorrelationId, string Error, string ErrorCode);
public record ManagementUnauthorized(string CorrelationId, string Message);