PDComm.Secs1Event
Class
An event produced by a Secs1Worker.
public sealed record Secs1EventParameters
| Name | Description |
|---|---|
Kind | The event kind. |
Token | The submitted message that the event settles, for Secs1EventKind.OutboundComplete, Secs1EventKind.OutboundFailed, and a Secs1EventKind.Fault that aborted a send; zero otherwise. |
Message | For Secs1EventKind.Inbound, the received message with its body copied into managed memory. For other kinds, a placeholder with zero fields and an empty body. |
DiscardedPartial | For a fault, whether a partially received message was discarded. |
FaultKind | For a fault, its kind: 1 I/O error, 3 stream closed, 4 line protocol error, 5 invalid block, 6 reassembly error (2, an unknown control character, is no longer produced). Zero otherwise. |
FaultDetail | For an I/O fault, the Secs1IoStatus value of the failure; zero otherwise. |
Members
Secs1Event
Constructor
An event produced by a Secs1Worker.
public Secs1Event(Secs1EventKind Kind, Secs1Token Token, Secs1Message Message, bool DiscardedPartial, uint FaultKind, uint FaultDetail)Parameters
| Name | Description |
|---|---|
Kind | The event kind. |
Token | The submitted message that the event settles, for Secs1EventKind.OutboundComplete, Secs1EventKind.OutboundFailed, and a Secs1EventKind.Fault that aborted a send; zero otherwise. |
Message | For Secs1EventKind.Inbound, the received message with its body copied into managed memory. For other kinds, a placeholder with zero fields and an empty body. |
DiscardedPartial | For a fault, whether a partially received message was discarded. |
FaultKind | For a fault, its kind: 1 I/O error, 3 stream closed, 4 line protocol error, 5 invalid block, 6 reassembly error (2, an unknown control character, is no longer produced). Zero otherwise. |
FaultDetail | For an I/O fault, the Secs1IoStatus value of the failure; zero otherwise. |
DiscardedPartial
Property
For a fault, whether a partially received message was discarded.
public bool DiscardedPartial { get; init; }FaultDetail
Property
For an I/O fault, the Secs1IoStatus value of the failure; zero otherwise.
public uint FaultDetail { get; init; }FaultKind
Property
For a fault, its kind: 1 I/O error, 3 stream closed, 4 line protocol error, 5 invalid block, 6 reassembly error (2, an unknown control character, is no longer produced). Zero otherwise.
public uint FaultKind { get; init; }Kind
Property
The event kind.
public Secs1EventKind Kind { get; init; }Message
Property
For Secs1EventKind.Inbound, the received message with its body copied into managed memory. For other kinds, a placeholder with zero fields and an empty body.
public Secs1Message Message { get; init; }Token
Property
The submitted message that the event settles, for Secs1EventKind.OutboundComplete, Secs1EventKind.OutboundFailed, and a Secs1EventKind.Fault that aborted a send; zero otherwise.
public Secs1Token Token { get; init; }