Class MessageDto
- Namespace
- Hi.MachiningProcs
- Assembly
- HiNc.dll
One reported IMessage, flattened for JSON transport.
public record MessageDto : IEquatable<MessageDto>
- Inheritance
-
MessageDto
- Implements
- Inherited Members
- Extension Methods
Constructors
MessageDto(string, string, string, string)
One reported IMessage, flattened for JSON transport.
public MessageDto(string Severity, string Category, string Id, string Notification)
Parameters
SeveritystringThe importance level (Message / Success / Progress / Warning / Error).
CategorystringThe classification (System / Unsupported / Validation / Configuration).
IdstringThe structured id used for filtering / suppression; may be null.
NotificationstringThe end-user friendly text.
Properties
Category
The classification (System / Unsupported / Validation / Configuration).
public string Category { get; init; }
Property Value
Id
The structured id used for filtering / suppression; may be null.
public string Id { get; init; }
Property Value
Notification
The end-user friendly text.
public string Notification { get; init; }
Property Value
Severity
The importance level (Message / Success / Progress / Warning / Error).
public string Severity { get; init; }
Property Value
Methods
From(IMessage)
Flattens one IMessage into a transport DTO.
public static MessageDto From(IMessage message)
Parameters
messageIMessageThe message to flatten.
Returns
- MessageDto
The flattened DTO.