Skip to content
Start free evaluation

PDComm.GemResultInfo

Struct

Represents the summary of a GemResult.

public readonly record struct GemResultInfo

Parameters

NameDescription
KindHow the transport event was processed.
OutcomeWhat GEM processing concluded.
RequestKindThe GEM transaction the result belongs to; zero when the result is not tied to a known transaction.
CodeThe failure detail: an HsmsFailureReason value or GemError.Aborted for GemResultKind.Failed, a GemError value for GemResultKind.InvalidResponse and GemResultKind.Unhandled, and zero otherwise.
AcknowledgementThe SEMI acknowledgement code carried or sent with the message (for example COMMACK, ONLACK or ACKC5), or null when the outcome has none.
ReplySenttrue when GEM processing sent a reply to the received primary.
TokenThe HSMS token of the request or of the received primary.
EntryCountThe number of entries in the result, such as status values or names, report query reports or values, alarms, command parameters or program IDs; zero when the result has no entries.
StateThe GEM state of the endpoint after the event was processed.

Members

GemResultInfo

Constructor

Represents the summary of a GemResult.

public GemResultInfo(GemResultKind Kind, GemOutcome Outcome, GemRequestKind RequestKind, uint Code, byte? Acknowledgement, bool ReplySent, HsmsToken Token, nuint EntryCount, GemState State)

Parameters

NameDescription
KindHow the transport event was processed.
OutcomeWhat GEM processing concluded.
RequestKindThe GEM transaction the result belongs to; zero when the result is not tied to a known transaction.
CodeThe failure detail: an HsmsFailureReason value or GemError.Aborted for GemResultKind.Failed, a GemError value for GemResultKind.InvalidResponse and GemResultKind.Unhandled, and zero otherwise.
AcknowledgementThe SEMI acknowledgement code carried or sent with the message (for example COMMACK, ONLACK or ACKC5), or null when the outcome has none.
ReplySenttrue when GEM processing sent a reply to the received primary.
TokenThe HSMS token of the request or of the received primary.
EntryCountThe number of entries in the result, such as status values or names, report query reports or values, alarms, command parameters or program IDs; zero when the result has no entries.
StateThe GEM state of the endpoint after the event was processed.

Acknowledgement

Property

The SEMI acknowledgement code carried or sent with the message (for example COMMACK, ONLACK or ACKC5), or null when the outcome has none.

public byte? Acknowledgement { get; init; }

Code

Property

The failure detail: an HsmsFailureReason value or GemError.Aborted for GemResultKind.Failed, a GemError value for GemResultKind.InvalidResponse and GemResultKind.Unhandled, and zero otherwise.

public uint Code { get; init; }

EntryCount

Property

The number of entries in the result, such as status values or names, report query reports or values, alarms, command parameters or program IDs; zero when the result has no entries.

public nuint EntryCount { get; init; }

Kind

Property

How the transport event was processed.

public GemResultKind Kind { get; init; }

Outcome

Property

What GEM processing concluded.

public GemOutcome Outcome { get; init; }

ReplySent

Property

true when GEM processing sent a reply to the received primary.

public bool ReplySent { get; init; }

RequestKind

Property

The GEM transaction the result belongs to; zero when the result is not tied to a known transaction.

public GemRequestKind RequestKind { get; init; }

State

Property

The GEM state of the endpoint after the event was processed.

public GemState State { get; init; }

Token

Property

The HSMS token of the request or of the received primary.

public HsmsToken Token { get; init; }