Files
scadalink-design/src/ScadaLink.Commons/Messages/Management/ManagementEnvelope.cs

12 lines
526 B
C#

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);