PDComm.Secs1State
Class
A snapshot of a SECS-I endpoint's lifecycle flags.
public sealed record Secs1StateEach flag is 1 when set and 0 otherwise.
Parameters
| Name | Description |
|---|---|
EndpointId | The process-local identity of the endpoint. |
Generation | The endpoint generation; every restart after a stop starts a new generation. |
Started | Whether the endpoint has been started and not stopped since. |
Stopped | Whether the endpoint has been stopped; a stop discards the runtime state. |
Faulted | Whether the line has faulted; the endpoint stops polling until Secs1Worker.ResetAsync clears the fault. |
Poisoned | Whether an internal failure poisoned the endpoint; it then only accepts destruction. |
Members
Secs1State
Constructor
A snapshot of a SECS-I endpoint's lifecycle flags.
public Secs1State(ulong EndpointId, ulong Generation, byte Started, byte Stopped, byte Faulted, byte Poisoned)Each flag is 1 when set and 0 otherwise.
Parameters
| Name | Description |
|---|---|
EndpointId | The process-local identity of the endpoint. |
Generation | The endpoint generation; every restart after a stop starts a new generation. |
Started | Whether the endpoint has been started and not stopped since. |
Stopped | Whether the endpoint has been stopped; a stop discards the runtime state. |
Faulted | Whether the line has faulted; the endpoint stops polling until Secs1Worker.ResetAsync clears the fault. |
Poisoned | Whether an internal failure poisoned the endpoint; it then only accepts destruction. |
EndpointId
Property
The process-local identity of the endpoint.
public ulong EndpointId { get; init; }Faulted
Property
Whether the line has faulted; the endpoint stops polling until Secs1Worker.ResetAsync clears the fault.
public byte Faulted { get; init; }Generation
Property
The endpoint generation; every restart after a stop starts a new generation.
public ulong Generation { get; init; }Poisoned
Property
Whether an internal failure poisoned the endpoint; it then only accepts destruction.
public byte Poisoned { get; init; }Started
Property
Whether the endpoint has been started and not stopped since.
public byte Started { get; init; }Stopped
Property
Whether the endpoint has been stopped; a stop discards the runtime state.
public byte Stopped { get; init; }