Table of Contents

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

Severity string

The importance level (Message / Success / Progress / Warning / Error).

Category string

The classification (System / Unsupported / Validation / Configuration).

Id string

The structured id used for filtering / suppression; may be null.

Notification string

The end-user friendly text.

Properties

Category

The classification (System / Unsupported / Validation / Configuration).

public string Category { get; init; }

Property Value

string

Id

The structured id used for filtering / suppression; may be null.

public string Id { get; init; }

Property Value

string

Notification

The end-user friendly text.

public string Notification { get; init; }

Property Value

string

Severity

The importance level (Message / Success / Progress / Warning / Error).

public string Severity { get; init; }

Property Value

string

Methods

From(IMessage)

Flattens one IMessage into a transport DTO.

public static MessageDto From(IMessage message)

Parameters

message IMessage

The message to flatten.

Returns

MessageDto

The flattened DTO.